Saga
Saga Game Engine
Loading...
Searching...
No Matches
Saga::IComponentGroup Class Referenceabstract

Generic group of components. More...

#include <componentGroup.h>

Inheritance diagram for Saga::IComponentGroup:

Public Member Functions

virtual ~IComponentGroup ()=default
 Destroy the IComponentGroup object.
 
virtual void addEntity (std::shared_ptr< GameWorld > world, const Entity &entity)=0
 Handle adding an entity to a group. This entity must have all the components specified by the group.
 
virtual void removeEntity (Entity entity)=0
 Handle removing an entity from a group.
 

Detailed Description

Generic group of components.

Constructor & Destructor Documentation

◆ ~IComponentGroup()

virtual Saga::IComponentGroup::~IComponentGroup ( )
virtualdefault

Destroy the IComponentGroup object.

Member Function Documentation

◆ addEntity()

virtual void Saga::IComponentGroup::addEntity ( std::shared_ptr< GameWorld world,
const Entity &  entity 
)
pure virtual

Handle adding an entity to a group. This entity must have all the components specified by the group.

Parameters
world
entity

Implemented in Saga::ComponentGroup< Component >.

◆ removeEntity()

virtual void Saga::IComponentGroup::removeEntity ( Entity  entity)
pure virtual

Handle removing an entity from a group.

Parameters
entity

Implemented in Saga::ComponentGroup< Component >.


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