Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CComponentSystem Class Referenceabstract

This is an abstract class that describes a component that is called to update continuously. You can add multiple components to a GameObject to handle its updates. More...

#include <Components/CComponentSystem.h>

Inheritance diagram for Skylicht::CComponentSystem:
Skylicht::IActivatorObject Skylicht::C3rdCamera Skylicht::CAnimationController Skylicht::CCamera Skylicht::CCameraBrain Skylicht::CCameraReflect Skylicht::CCanvas Skylicht::CEditorCamera Skylicht::CEntityHandler Skylicht::CFpsMoveCamera Skylicht::CGridPlane Skylicht::CIndirectLighting Skylicht::CLOD Skylicht::CLathe Skylicht::CLight Skylicht::CLightProbe Skylicht::CLightmap Skylicht::CNullComponent Skylicht::COcclusionQuery Skylicht::CReflectionProbe Skylicht::CSkyBox Skylicht::CSkyDome Skylicht::CSkySun Skylicht::CSprite Skylicht::CTransform Skylicht::Graph::CGraphComponent Skylicht::Lightmapper::CBakeLightComponent Skylicht::Particle::CParticleComponent Skylicht::Particle::CParticleTrailComponent Skylicht::Physics::CCollider Skylicht::Physics::ICollisionObject Skylicht::UI::CUIContainer

Public Member Functions

const char * getName ()
virtual void reset ()
virtual void initComponent ()=0
virtual void startComponent ()
virtual void updateComponent ()=0
virtual void endUpdate ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Static Public Member Functions

static int useComponent (CComponentSystem *used)

Protected Member Functions

void setOwner (CGameObject *obj)

Protected Attributes

CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Friends

class CGameObject
class CDependentComponent

Detailed Description

This is an abstract class that describes a component that is called to update continuously. You can add multiple components to a GameObject to handle its updates.

Member Function Documentation

◆ createSerializable()

virtual CObjectSerializable * Skylicht::CComponentSystem::createSerializable ( )
virtual

◆ endUpdate()

virtual void Skylicht::CComponentSystem::endUpdate ( )
virtual

◆ initComponent()

virtual void Skylicht::CComponentSystem::initComponent ( )
pure virtual

◆ loadSerializable()

virtual void Skylicht::CComponentSystem::loadSerializable ( CObjectSerializable * object)
virtual

◆ reset()

virtual void Skylicht::CComponentSystem::reset ( )
virtual

◆ startComponent()

virtual void Skylicht::CComponentSystem::startComponent ( )
virtual

◆ updateComponent()

virtual void Skylicht::CComponentSystem::updateComponent ( )
pure virtual

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