14class ComponentListBase {
25 virtual ~ComponentListBase() =
default;
26 ComponentListBase(
const ComponentListBase& o ) =
delete;
27 ComponentListBase(ComponentListBase&& o) =
delete;
28 ComponentListBase& operator= (
const ComponentListBase& o) =
delete;
29 ComponentListBase& operator= (ComponentListBase&& o) =
delete;
36 virtual bool addEntity(
unsigned e) = 0;
39 virtual bool moveComponent(
unsigned src,
unsigned dst) = 0;
44 virtual bool removeComponent(
unsigned e) = 0;
Handles anything related to entities and components in the engine.
Definition: component_manager.hpp:29
ComponentListType
type of container to be used for storing componets
Definition: component_lists.hpp:8
@ kSparse
should be used for compnents that are used by most entities
@ kCompact
should be used for compoenents used by few entities