CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
entity_common.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Namespaces

 corgi
 Namespace for CORGI library.
 

Typedefs

typedef int corgi::WorldTime
 A typedef that represents time in the game.
 
typedef uint16_t corgi::ComponentIndex
 A ComponentIndex is a value used to represent the location of a piece of ComponentData, normally inside of a VectorPool.
 
typedef uint16_t corgi::EntityIdType
 A EntityIdType is a value used to uniquely represent an entity in various internal structures. In general, CORGI users should avoid using this directly, and should instead refer to entities via EntityRefs.
 
typedef uint16_t corgi::ComponentId
 This represents the ID of a Component. More...
 

Variables

const ComponentId corgi::kInvalidComponent = static_cast<ComponentId>(-1)
 A sentinel value to represent an invalid Component. More...
 
static const ComponentIndex corgi::kInvalidComponentIndex
 
static const EntityIdType corgi::kInvalidEntityId = static_cast<EntityIdType>(-1)
 A sentinel value to represent an invalid entity. More...