OGWEntityIdentity Class Reference
Inherits from | NSObject |
Declared in | OGWEntityIdentity.h |
Overview
The identity object contains a uniqueID (a consecutive number) and a reference to the entity’s category. You can also set type and subType to further classify or identify entities according to your needs.
Properties
category
The entity’s category.
@property (readonly) const OGWEntityCategory *category
Return Value
The entity’s category.
See Also
Declared In
OGWEntityIdentity.h
subType
The entity’s subType. Can be used to further classify entities according to your needs.
@property GWEntitySubType subType
Return Value
The entity’s subType. Can be used to further classify entities according to your needs.
See Also
Declared In
OGWEntityIdentity.h
type
The entity’s type. Can be used to further classify entities according to your needs.
@property GWEntityType type
Return Value
The entity’s type. Can be used to further classify entities according to your needs.
See Also
Declared In
OGWEntityIdentity.h
uniqueID
The entity’s uniqueID. This is a consecutive number that uniquely identifies a specific entity. The uniqueID will never re-use previously existing IDs. An entity’s pointer can be obtained from its uniqueID through OGWWorldEntities. Storing an entity’s uniqueID is a safe way to keep a reference to another entity, though storing the entity’s pointer in a __weak ivar or weak property would work as well.
@property (readonly) GWID uniqueID
Return Value
The entity’s uniqueID. This is a consecutive number that uniquely identifies a specific entity. The uniqueID will never re-use previously existing IDs. An entity’s pointer can be obtained from its uniqueID through OGWWorldEntities. Storing an entity’s uniqueID is a safe way to keep a reference to another entity, though storing the entity’s pointer in a __weak ivar or weak property would work as well.
Declared In
OGWEntityIdentity.h