SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::EntityComponent Class Reference

EntityComponent Class. This class defines the specific behaves of EntityComponent. More...

#include <EntityComponent.h>

Inheritance diagram for Spices::EntityComponent:
Spices::Component

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.
 

Detailed Description

EntityComponent Class. This class defines the specific behaves of EntityComponent.

Definition at line 17 of file EntityComponent.h.


The documentation for this class was generated from the following files: