Entity custom data

It is possible to store custom data into entities, which may be retrieved at anytime. It allows entities to have much more specific properties for specific behavior. For example, a player's HP, projectile directions (since each projectile should have its specific moving direction), RPG character's status such as strength, stamina, agility, etc.

EE supports the following custom data types:

type Size Identification constant
float 32-bit DT_FLOAT
int 32-bit DT_INT
uint 32-bit DT_UINT
string std::string DT_STRING
vector2 2 * sizeof(float) DT_VECTOR2
vector3 3 * sizeof(float) DT_VECTOR3
AngelScript object handle - DT_OBJECT

Each entity may have any combination of custom variables.