EntityComponent Class. This class defines the specific behaves of EntityComponent. More...
#include <EntityComponent.h>
Public Member Functions | |
| EntityComponent ()=default | |
| Constructor Function. | |
| virtual | ~EntityComponent () 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 | DrawThis () override |
| This interface defines how to draw this component to property panel. | |
| void | AddEntity (uint32_t entity) |
| Add an child entity to this Component. | |
| void | RemoveEntity (uint32_t entity) |
| Remove an child entity from this Component. | |
| const std::set< uint32_t > & | GetEntities () |
| Get this Component Entities. | |
| virtual void | OnComponentAdded (const entt::entity &entity) |
| This interface defines the behaves on specific component added. Init with variable. | |
Protected Attributes | |
| entt::entity | m_Owner { entt::null } |
| This component's Owner entity. | |
Private Attributes | |
| std::set< uint32_t > | m_Entities |
| child entities. | |
EntityComponent Class. This class defines the specific behaves of EntityComponent.
Definition at line 17 of file EntityComponent.h.