|
| static bool | Register (const ScriptDefinition &definition) |
| static const std::map< std::string, ScriptDefinition > & | GetDefinitions () |
| static const ScriptDefinition * | Find (const std::string &name) |
| | Looks up a script definition by its registered type name.
|
| static bool | Attach (Scene &scene, entt::entity entity, const std::string &name) |
| static void | Remove (Scene &scene, entt::entity entity, size_t index) |
| static bool | ReplaceModule (const std::vector< ScriptDefinition > &definitions, const std::shared_ptr< void > &lease, Scene *scene, std::string &error) |
| static void | ClearModule () |
| template<typename T, typename V> |
| static ScriptProperty | Property (const std::string &name, V T::*member) |
Registers script factories and editable property descriptors.
ScriptDefinition connects a type name, factory, source location and property accessors. Module replacement updates the definitions used for attachment and transfers authored property values through the supported ScriptValue representation.
- Usage
- Use Find to locate a registered type and Attach to add it to a scene entity. Keep module leases with definitions and instances; do not retain a raw definition pointer across a module replacement.
Definition at line 54 of file ScriptRegistry.h.