|
Muto 0.0.1
|
Component that holds scripting data for an entity. More...
#include <Components.h>
Public Member Functions | |
| template<typename T > | |
| void | Bind () |
| Binds a script type to this component. | |
Public Attributes | |
| void(* | DestroyScript )(NativeScriptComponent *) |
| Function pointer to destroy the script. | |
| ScriptableEntity * | Instance = nullptr |
| Pointer to the instance of the scriptable entity. | |
| ScriptableEntity *(* | InstantiateScript )() |
| Function pointer to instantiate the script. | |
Component that holds scripting data for an entity.
Binds a script type to this component.
| T | The type of the script to bind. |
References DestroyScript, and Instance.
| void(* Muto::NativeScriptComponent::DestroyScript) (NativeScriptComponent *) |
Function pointer to destroy the script.
Referenced by Bind().
| ScriptableEntity* Muto::NativeScriptComponent::Instance = nullptr |
Pointer to the instance of the scriptable entity.
Referenced by Bind().
| ScriptableEntity *(* Muto::NativeScriptComponent::InstantiateScript) () |
Function pointer to instantiate the script.