|
CORGI
An open source project by
FPL.
|
A structure of data that is associated with each Entity. More...
#include <component.h>
A structure of data that is associated with each Entity.
It contains the template struct, as well as a pointer back to the Entity that owns this data.
Public Member Functions | |
| ComponentData () | |
| The default constructor for an empty ComponentData. | |
| ComponentData (ComponentData &&src) | |
| Construct a new ComponentData from an existing ComponentData. More... | |
| ComponentData & | operator= (ComponentData &&src) |
| Move a referenced ComponentData into this ComponentData. More... | |
Public Attributes | |
| EntityRef | entity |
| The Entity associated with this data. | |
| T | data |
| The data to associate with the Entity. | |
|
inline |
Construct a new ComponentData from an existing ComponentData.
| [in] | src | An existing ComponentData whose data should be moved into the new ComponentData. |
|
inline |
Move a referenced ComponentData into this ComponentData.
Move operators are efficient since they allow referenced data to be moved instead of copied.
| [in] | src | A referenced ComponentData to be moved into this ComponentData. |