![]() |
3DRadSpace
v1.0.0a
Scripting documentation
|
Contains methods and fields for managing game objects. More...
Static Public Member Functions | |
static void | DrawModel (Model model, Matrix world, Matrix view, Matrix projection, bool FogEnabled=false, Vector3 FogColor=default, float FogStart=0, float FogEnd=0) |
Draws a 3D Model. More... | |
static object | FindObject (int i) |
Finds an objects after it's id. More... | |
static object | FindObject (string Name) |
Finds an objects after it's name. If objects have the same name, the object with the lowest numerical ID will be returned. More... | |
static void | SetObject (int i, GameObject obj) |
Sets an object in the list. More... | |
Static Public Attributes | |
static Vector2 | ScreenSize |
Gets or sets the screen-size used for the objects like Camera2D, ExitFade... More... | |
static bool | RequestExit |
If true, the game will close next frame. More... | |
Properties | |
static List< GameObject > | GameObjects [get, set] |
Contains the objects. Note this is a System.Collections.Generic.List (a linked list) More... | |
Contains methods and fields for managing game objects.
|
static |
|
static |
Finds an objects after it's id.
Time complexity is O(n) since GameObjects is a linked list.
i | Numeric indentifier. |
|
static |
Finds an objects after it's name. If objects have the same name, the object with the lowest numerical ID will be returned.
Time complexity in the worst case is about O(n^2)
Name | Object's name |
|
static |
Sets an object in the list.
i | Object unique numeric (ID)entifier / array index |
Time complexity is O(n), since the objects are stored in a linked list.
obj | Value |
|
static |
If true, the game will close next frame.
|
static |
|
staticgetset |
Contains the objects. Note this is a System.Collections.Generic.List (a linked list)