Untitled Game engine no.5
1.0
|
An array of components of type T. More...
#include <ComponentArray.hpp>
Public Member Functions | |
ComponentDataArray () | |
Constructor. | |
Ref< T > | Insert (EntityID id, Ref< T > c) |
Ref< T > | Insert (EntityID id, T c) |
void | Remove (EntityID id) |
Ref< T > | GetComp (EntityID id) |
void | EntityDestroyed (EntityID id) |
An array of components of type T.
|
inlinevirtual |
Get rid of stuff when the entity is destroyed
id | the entity that was destroyed |
Implements Engine::IComponentDataArray.
|
inline |
Gives you a reference to a component on an entity
id | the entity we want this component from |
|
inline |
Add a component to an entity
id | the entity we want to attatch to |
c | the component we want to attatch |
|
inline |
Add a component to an entity
id | the entity we want to attatch to |
c | the component we want to attatch |
|
inline |
Removes a component from an entity
id | the entity we want to remove a component from |