Component that specifies the list of lua scripts to be run for the Entity it is attached to.
Scripts can use the self global variable to access the Entity they are attached to.
In all the following functions, a script is the path to a file containing a script, NOT THE ACTUAL SCRIPT CODE.
- Reflectible
- Serializable (POD)
- Processed by the LuaSystem
using script = putils::string<KENGINE_MAX_LUA_SCRIPT_PATH>;
using script_vector = putils::vector<script, KENGINE_MAX_LUA_SCRIPTS>;script_vector scripts;The maximum length of a script name (stored as a putils::string) defaults to 64, and can be adjusted by defining the KENGINE_MAX_LUA_SCRIPT_PATH macro.
The maximum number of scripts defaults to 8 and can be adjusted by defining the KENGINE_MAX_LUA_SCRIPTS macro.