StaticLuaTest
STATIC CLASS: A single instance is shared throughout the game
Constants
The value of a constant cannot be changed
Type | Name | Value | Description |
---|---|---|---|
string | FieldWithReadonly | 'Field with readonly as default' | Yes it also has documentation |
string | STRING_CONST | 'Something' | An actual string constant |
number | INT_CONST | 124 | |
number | DOUBLE_CONST | 125.214 |
Fields
Type | Name | Static | Default | Description |
---|---|---|---|---|
number | Field | 0 | ||
number | FieldWithDefault | 500 |
Properties
Type | Getter | Setter | Static | Default | Description |
---|---|---|---|---|---|
number | get_Property() | set_Property(val) | 0 | ||
number | get_PropertyWithDefault() | set_PropertyWithDefault(val) | 25 | ||
number | get_PropertyWithoutSetter() | 75 | |||
number | get_PropertyWithPrivateSetter() | 69 | |||
string | get_PropertyWithStringDefault() | set_PropertyWithStringDefault(val) | 'Hello World' |
Static Methods
Do not require an instance!
ObsoleteStaticMethod
ObsoleteStaticMethod() -> nil
VoidMethod
Static method
VoidMethod() -> nil
VoidMethod(string)
Static method with parameter
VoidMethod(param1: string) -> nil
Type | Name | Description |
---|---|---|
string | param1 | A cool parameter |
VoidMethod(string,number,number)
VoidMethod(param1: string,param2: number,param3: number = 25) -> nil
Type | Name | Description |
---|---|---|
string | param1 | First parameter |
number | param2 | Second parameter |
number | param3 | Third parameter with a default |