![]()
geEntity
Description: EntitySet creation / Entity Compiler
Source file: ...\genesis3d\OpenSource\Entities\ENTITIES.h
Core Functions: geWorld_GetEntitySet, EntitySetGetNextEntity, GetUserData, GetName
Core Type: geEntity
[The following "other" functions and types are probably NOT available in the precompiled files]
Other Functions: WorldInit, WorldShutdown, Create, Destroy, GetModelNumForKey, AddEpair, GetStringForKey, EpairCreate, EpairDestroy, FieldCreate, FieldDestroy, ClassCreate, ClassDestroy, ClassAddField, ClassFindFieldByName, EntitySetCreate, EntitySetDestroy, EntitySetFindClassByName, EntitySetFindEntityByName, EntitySetAddEntity, EntitySetAddClass, LoadEntitySet
Other Types: geEntity_ClassType, geEntity_Field, geEntity_Class, geEntity_Epair, geEntity_EntitySet
Changes for Genesis3D v1.6: None
![]()
Notes:
What are entities? Entities are place-holder entries put into the level files (i.e. via Genesis World Editor), to be later implemented by the program. And example could be the following entity: ItemHealth1: Origin = 0, 0, 0. At run-time, the program can search for all items, and add them to the world as indicated. In this case, it could put a health kit at location (0, 0, 0).
The following functions (geWorld_GetEntitySet, EntitySetGetNextEntity, GetUserData, GetName) are defined in " \genesis3d\include\Genesis.h". The rest of the functions in this file are not included there. Instead, they were found in " \genesis3d\OpenSource\Entities\Entities.h". Thus they are probably not required for most interactions with the Genesis3D engine. (Indeed, because they are not prefaced with GENESISAPI, they are likely not available in the precompiled library files.)
![]()
Types:
![]()
Core Functions:
![]()
GENESISAPI geEntity_EntitySet* geWorld_GetEntitySet(geWorld* World, const char* ClassName);
Searches through all entities located in the current World, and returns a pointer to a Set containing those entities whose names begin with ClassName.
![]()
GENESISAPI geEntity* geEntity_EntitySetGetNextEntity(geEntity_EntitySet* EntitySet, geEntity* Entity);
Returns the next entity that occurs after Entity. To get the first entity in the set, make Entity=NULL
![]()
GENESISAPI void* geEntity_GetUserData(geEntity* Entity);
Returns an untyped pointer to the user data for Entity. The user must then typecast the pointer to a known type.
![]()
GENESISAPI void geEntity_GetName(const geEntity* Entity, char* Buff, int MaxLen);
Gets the name of the Entity.
![]()
Other Functions:
![]()
geBoolean Ent_WorldInit(geWorld* World);
![]()
void Ent_WorldShutdown(geWorld* World);
![]()
geEntity* geEntity_Create(void);
![]()
void geEntity_Destroy(geEntity* Entity);
![]()
geBoolean geEntity_GetModelNumForKey(geEntity* Entity, const char* Key, int32* ModelNum);
![]()
geBoolean geEntity_AddEpair(geEntity* Entity, geEntity_Epair* Epair);
![]()
const char* geEntity_GetStringForKey(const geEntity* Entity, const char* Key);
![]()
geEntity_Epair* geEntity_EpairCreate(void);
![]()
void geEntity_EpairDestroy(geEntity_Epair* Epair);
![]()
geEntity_Field* geEntity_FieldCreate(const char* Name, int32 Offset, geEntity_Class* TypeClass);
![]()
void geEntity_FieldDestroy(geEntity_Field* Field);
![]()
geEntity_Class* geEntity_ClassCreate(geEntity_ClassType Type, const char* Name, int32 TypeSize);
![]()
void geEntity_ClassDestroy(geEntity_Class* Class);
![]()
geBoolean geEntity_ClassAddField(geEntity_Class* Class, geEntity_Field* Field);
![]()
geEntity_Field* geEntity_ClassFindFieldByName(geEntity_Class* Class, const char* Name);
![]()
geEntity_EntitySet* geEntity_EntitySetCreate(void);
![]()
void geEntity_EntitySetDestroy(geEntity_EntitySet* EntitySet);
![]()
geEntity_Class* geEntity_EntitySetFindClassByName(geEntity_EntitySet* Set, const char* Name);
![]()
geEntity* geEntity_EntitySetFindEntityByName(geEntity_EntitySet* EntitySet, const char* Name);
![]()
geBoolean geEntity_EntitySetAddEntity(geEntity_EntitySet* EntitySet, geEntity* Entity);
![]()
geBoolean geEntity_EntitySetAddClass(geEntity_EntitySet* EntitySet, geEntity_Class* Class);
![]()
geEntity_EntitySet* LoadEntitySet(const char* EntityData, int32 EntityDataSize);
![]()