Class Entity¶
Defined in File entity.h
Class Documentation¶
-
class
Entity
¶ A collection of ECS style components that define an ECS style entity.
Public Functions
-
~Entity
()¶
-
bool
onAllComponentsAdded
()¶
-
bool
onAllEntitiesAdded
()¶
-
bool
removeComponent
(ComponentID toRemoveComponentID, bool hardRemove = false)¶
-
bool
hasComponent
(ComponentID componentID)¶
-
void
clear
()¶ Remove all components.
-
void
destroy
()¶ Destruct all components.
-
template<class
ComponentType
= Component>
ComponentType *getComponent
()¶
-
template<class
ComponentType
= Component>
ComponentType *getComponentFromID
(ComponentID ID)¶
-
JSON::json
getJSON
() const¶
-
const HashMap<ComponentID, Component *> &
getAllComponents
() const¶
-
void
evaluateScriptOverrides
()¶
-
bool
setScriptJSON
(const JSON::json &script)¶
-
void
draw
()¶
-