StaticLuaTest Static

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

ReadOnly

Type Name Static Default Description
number PropertyWithoutSetter 75
number PropertyWithPrivateSetter 69

Properties

Type Getter Setter Static Default Description
number get_Property() set_Property(val) 0
number get_PropertyWithDefault() set_PropertyWithDefault(val) 25
string get_PropertyWithStringDefault() set_PropertyWithStringDefault(val) 'Hello World'

Functions

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

Categories:

Updated: