Vivid
Loading...
Searching...
No Matches
Vivid::Component Class Referenceabstract

Contains a Component. More...

#include <Component.h>

Inheritance diagram for Vivid::Component:
[legend]

Public Member Functions

virtual void Draw (Camera *camera)=0
 
virtual void ImGuiRender ()=0
 
int GetOwnerEntityID () const
 
void SetEntity (const int &entityID)
 
virtual ComponentType GetComponentType ()=0
 
int GetComponentID () const
 

Protected Attributes

int m_OwnerEntityID = 0
 

Detailed Description

Contains a Component.

Component is a class that contains a component. It is a base class for all the components. It contains a unique ID for every component. It also contains the ID of the entity to which it belongs.

Definition at line 14 of file Component.h.

Constructor & Destructor Documentation

◆ Component()

Vivid::Component::Component ( )

Definition at line 4 of file Component.cpp.

Member Function Documentation

◆ GetComponentID()

int Vivid::Component::GetComponentID ( ) const
inline

Definition at line 34 of file Component.h.

◆ GetOwnerEntityID()

int Vivid::Component::GetOwnerEntityID ( ) const
inline

Definition at line 30 of file Component.h.

◆ SetEntity()

void Vivid::Component::SetEntity ( const int &  entityID)
inline

Definition at line 31 of file Component.h.

Member Data Documentation

◆ m_OwnerEntityID

int Vivid::Component::m_OwnerEntityID = 0
protected

Definition at line 20 of file Component.h.


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