Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
ECS::IComponent Class Referenceabstract

#include <IComponent.h>

+ Inheritance diagram for ECS::IComponent:

Public Member Functions

 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
 

Protected Attributes

ComponentId m_HashValue
 
ComponentId m_ComponentID
 
EntityId m_Owner
 
bool m_Enabled
 

Friends

class ComponentManager
 

Detailed Description

Definition at line 29 of file IComponent.h.

Constructor & Destructor Documentation

◆ IComponent()

ECS::IComponent::IComponent ( )

Definition at line 12 of file IComponent.cpp.

◆ ~IComponent()

ECS::IComponent::~IComponent ( )
virtual

Definition at line 17 of file IComponent.cpp.

Member Function Documentation

◆ GetComponentId()

ComponentId ECS::IComponent::GetComponentId ( ) const
inline

Definition at line 57 of file IComponent.h.

◆ GetOwner()

EntityId ECS::IComponent::GetOwner ( ) const
inline

Definition at line 59 of file IComponent.h.

◆ IsActive()

bool ECS::IComponent::IsActive ( ) const
inline

Definition at line 62 of file IComponent.h.

◆ OnData()

virtual void ECS::IComponent::OnData ( const CustomEvent data)
pure virtual

◆ operator!=()

bool ECS::IComponent::operator!= ( const IComponent other) const
inline

Definition at line 52 of file IComponent.h.

◆ operator==()

bool ECS::IComponent::operator== ( const IComponent other) const
inline

Definition at line 51 of file IComponent.h.

◆ SetActive()

void ECS::IComponent::SetActive ( bool  state)
inline

Definition at line 61 of file IComponent.h.

Friends And Related Function Documentation

◆ ComponentManager

friend class ComponentManager
friend

Definition at line 31 of file IComponent.h.

Member Data Documentation

◆ m_ComponentID

ComponentId ECS::IComponent::m_ComponentID
protected

Definition at line 37 of file IComponent.h.

◆ m_Enabled

bool ECS::IComponent::m_Enabled
protected

Definition at line 41 of file IComponent.h.

◆ m_HashValue

ComponentId ECS::IComponent::m_HashValue
protected

Definition at line 35 of file IComponent.h.

◆ m_Owner

EntityId ECS::IComponent::m_Owner
protected

Definition at line 39 of file IComponent.h.


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