#include
Public Member Functions | |
virtual IEntityClass * | FindClass (const char *sClassName) const =0 |
virtual IEntityClass * | FindClassByGUID (const CryGUID &guid) const =0 |
virtual IEntityClass * | GetDefaultClass () const =0 |
virtual void | LoadClasses (const char *szFilename, bool bOnlyNewClasses=false)=0 |
virtual IEntityClass * | RegisterStdClass (const SEntityClassDesc &entityClassDesc)=0 |
virtual bool | UnregisterStdClass (const CryGUID &classGUID)=0 |
virtual void | RegisterListener (IEntityClassRegistryListener *pListener)=0 |
Register a listener. | |
virtual void | UnregisterListener (IEntityClassRegistryListener *pListener)=0 |
Unregister a listener. | |
virtual void | UnregisterSchematycEntityClass ()=0 |
virtual void | IteratorMoveFirst ()=0 |
virtual IEntityClass * | IteratorNext ()=0 |
virtual int | GetClassCount () const =0 |
This interface is the repository of the the various entity classes, it allows creation and modification of entities types. There`s only one IEntityClassRegistry interface can exist per EntitySystem. Every entity class that can be spawned must be registered in this interface.
|
pure virtual |
Retrieves pointer to the IEntityClass interface by entity class name.
|
pure virtual |
Retrieves pointer to the IEntityClass interface by GUID.
|
pure virtual |
Return the number of entity classes in the registry.
|
pure virtual |
Retrieves pointer to the IEntityClass interface for a default entity class.
|
pure virtual |
Move the entity class iterator to the begin of the registry. To iterate over all entity classes, e.g.: IEntityClass *pClass = nullptr; for (pEntityRegistry->IteratorMoveFirst(); pClass = pEntityRegistry->IteratorNext();;) { pClass ... }
|
pure virtual |
Get the next entity class in the registry.
|
pure virtual |
Load all entity class descriptions from the provided xml file.
szFilename | Path to XML file containing entity class descriptions. |
|
pure virtual |
Register standard entity class, if class id not specified (is zero), generate a new class id.
|
pure virtual |
Unregister an entity class.