2
3
4
5
14 m_RealNScriptComp = realComp;
19 Component::OnComponentAdded(entity);
22
23
29 m_RealNScriptComp->m_Owner = m_Owner;
31 m_RealNScriptComp->OnConstruction();
36 m_RealNScriptComp->OnTick(ts);
41 m_RealNScriptComp->OnEvent(e);
This Class is the basic Event Class. Inherit from it and create specific event class.
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.
NativeScriptComponent(std::shared_ptr< NativeScriptComponent > realComp)
Constructor Function. Init class variable. Usually call it.
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.
NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent....
This Class handles our engine time step during frames. Global Unique.