Library class.
More...
Static Public Member Functions |
static function | ACall (func, args) |
| Call a function with the arguments packed in the args array.
|
static function | GetVersion () |
| Get current OpenTTD version.
|
Detailed Description
Member Function Documentation
static function Common::ACall |
( |
func |
, |
|
|
args |
|
|
) |
| |
|
inlinestatic |
Call a function with the arguments packed in the args array.
- Parameters
-
func | Function to execute. |
args | Array of arguments. The first argument will be used as 'this' in the function that is called. You can use this to call a member function in a non-static way. If you want to call a static function, use null as first item of the args array. |
- Returns
- Return value of the called function.
static function Common::GetVersion |
( |
| ) |
|
|
inlinestatic |
Get current OpenTTD version.
- Returns
- A table with seperate fields for each version part:
- Major: the major version
- Minor: the minor version
- Build: the build
- IsRelease: is this an stable release
- Revision: the svn revision of this build
The documentation for this class was generated from the following file: