Component Class. This class defines the basic behaves of component. When we add an new Component, we need inherit from this. More...
#include <Component.h>
Public Member Functions | |
| Component ()=default | |
| Constructor Function. | |
| virtual | ~Component ()=default |
| Destructor Function. | |
| virtual void | OnSerialize ()=0 |
| This interface defines how to serialize. | |
| virtual void | OnDeSerialize ()=0 |
| This interface defines how to deserialize. | |
| virtual void | OnComponentAdded (const entt::entity &entity) |
| This interface defines the behaves on specific component added. Init with variable. | |
| 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. | |
Component Class. This class defines the basic behaves of component. When we add an new Component, we need inherit from this.
Definition at line 26 of file Component.h.