NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent. When we add an new NativeScriptComponent, we need inherit from this. More...
#include <NativeScriptComponent.h>
Public Member Functions | |
| NativeScriptComponent ()=default | |
| Constructor Function. | |
| NativeScriptComponent (std::shared_ptr< NativeScriptComponent > realComp) | |
| Constructor Function. Init class variable. Usually call it. | |
| virtual | ~NativeScriptComponent () override=default |
| Destructor Function. | |
| virtual void | OnSerialize () override |
| This interface defines how to serialize. | |
| virtual void | OnDeSerialize () override |
| This interface defines how to deserialize. | |
| virtual void | OnComponentAdded (const entt::entity &entity) override final |
| This interface defines the behaves on specific component added. Init with variable. | |
| virtual void | OnConstruction () |
| This interface defines the behaves on specific component added. | |
| virtual void | OnTick (TimeStep &ts) |
| This interface defines the behaves on specific component tick every frame. | |
| virtual void | OnEvent (Event &e) |
| This interface defines the behaves on specific component event happened. | |
| virtual void | DrawThis () |
| This interface defines how to draw this component to property panel. | |
Protected Attributes | |
| entt::entity | m_Owner { entt::null } |
| This component's Owner entity. | |
Private Attributes | |
| std::shared_ptr< NativeScriptComponent > | m_RealNScriptComp |
| Real component. | |
NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent. When we add an new NativeScriptComponent, we need inherit from this.
Definition at line 23 of file NativeScriptComponent.h.