Expand description
Scripting constructs
Note that the macros are in ::Macro.
§Workflow
This library allows for the creation of scripts that govern the behavior of game_objects. Once the run function is called, it takes control of the thread until the window is closed. During this time it is still possible to create new game-objects and scripts that can be added to the scene.
Modules§
- executor
- [backend] Manages the async scripts.
- globals
- Constructs that let you interface with the engine to safely create and use global variables.
- swap
- Constructs that let you interface with the engine to safely swap and delete GameObjects.
Structs§
- Script
- A struct that provides a container for a scripts datatypes.
Traits§
- Scriptable
- A trait that provides scriptable functionality.
Functions§
- new_
executor_ and_ spawner - [backend] Creates a new executor and spawner for managing the asynchronous scripts. (TODO move to executor)