This class provides methods to create typed objects in a script at runtime. More...
Low Level Methods | |
Vector | Vector (float x, float y, float z) |
Create a 3D vector object. | |
Vector2 | Vector2 (float x, float y) |
Create a 2D vector object. | |
Point | Point (float x, float y) |
Create a point object (same as 2D vector). | |
Size | Size (float w, float h) |
Create a size object. | |
Rect | Rect (float l, float t, float r, float b) |
Create a rect object. | |
Colour | Colour () |
Create a RGBA colour object. | |
Colour | Colour (float r, float g, float b, float a=1.0f) |
Create a RGBA colour object. | |
ColourRect | ColourRect () |
Create a RGBA colour rect object. | |
ColourRect | ColourRect (Colour col) |
Create a RGBA colour rect object. | |
ColourRect | ColourRect (Colour top_left, Colour top_right, Colour bottom_left, Colour bottom_right) |
Create a RGBA colour rect object. | |
UDim | UDim (float scale, float offset) |
Create a unified dim object. | |
UVector2 | UVector2 (UDim scale, UDim offset) |
Create a unified dim 2D vector object. | |
URect | URect (UVector2 min, UVector2 max) |
Create a unified dim rect object. | |
URect | URect (UDim left, UDim top, UDim right, UDim bottom) |
Create a unified dim rect object. | |
ListboxTextItem | ListboxTextItem (string text, int item_id=0, bool disabled=false) |
Create a ListboxTextItem object. | |
MCLGridRef | MCLGridRef (int row, int column) |
Create a MCLGridRef object. |
This class provides methods to create typed objects in a script at runtime.
Think of it as a C++ new
command for Simkin scripts. The objects returned will be properly destroyed when the scripted executable is destroyed, or when they go out of scope in the script.