Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
ECS::Component< T > Class Template Reference

#include <Component.h>

+ Inheritance diagram for ECS::Component< T >:

Public Member Functions

 Component ()
 
virtual ~Component () override
 
ComponentTypeId GetStaticComponentTypeID () const
 
- Public Member Functions inherited from ECS::IComponent
 IComponent ()
 
virtual ~IComponent ()
 
bool operator== (const IComponent &other) const
 
bool operator!= (const IComponent &other) const
 
ComponentId GetComponentId () const
 
EntityId GetOwner () const
 
void SetActive (bool state)
 
bool IsActive () const
 
virtual void OnData (const CustomEvent &data)=0
 

Static Public Attributes

static const ComponentTypeId STATIC_COMPONENT_TYPE_ID = util::Internal::FamilyTypeID<IComponent>::Get<T>()
 

Additional Inherited Members

- Protected Attributes inherited from ECS::IComponent
ComponentId m_HashValue
 
ComponentId m_ComponentID
 
EntityId m_Owner
 
bool m_Enabled
 

Detailed Description

template<class T>
class ECS::Component< T >

Definition at line 23 of file Component.h.

Constructor & Destructor Documentation

◆ Component()

template<class T >
ECS::Component< T >::Component ( )
inline

Definition at line 30 of file Component.h.

◆ ~Component()

template<class T >
virtual ECS::Component< T >::~Component ( )
inlineoverridevirtual

Definition at line 33 of file Component.h.

Member Function Documentation

◆ GetStaticComponentTypeID()

template<class T >
ComponentTypeId ECS::Component< T >::GetStaticComponentTypeID ( ) const
inline

Definition at line 36 of file Component.h.

Member Data Documentation

◆ STATIC_COMPONENT_TYPE_ID

template<class T >
const ComponentTypeId ECS::Component< T >::STATIC_COMPONENT_TYPE_ID = util::Internal::FamilyTypeID<IComponent>::Get<T>()
static

Definition at line 28 of file Component.h.


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