#include <entities.h>
|
static void | Register () |
|
static void | Update () |
| Updates entities. More...
|
|
static void | RegisterType (name_t name, entity_make, entity_clear, const Type *fields, size_t fieldcount) |
| Registers a new entity type. More...
|
|
static void | RegisterType (name_t name, entity_make, entity_clear, const FieldInfo *fields, size_t fieldcount) |
| Registers a new entity type. More...
|
|
static void | RegisterType (name_t name, entity_make, entity_clear, std::initializer_list< FieldInfo > fields) |
| Registers a new entity type. More...
|
|
static Entity * | Make (name_t type, File *file) |
| Loads an Entity from a File. More...
|
|
static Entity * | Make (name_t type, const SharedEntityData &, const ValueArray &) |
| Creates an entity. More...
|
|
static Entity * | Find (id_t entity_id) |
| Finds the entity by its ID number. More...
|
|
static Entity * | Find (name_t entity_name) |
| Finds the entity by its name. More...
|
|
◆ TriggerAutosave()
◆ Load()
void tram::Ext::Kitchensink::TriggerAutosave::Load |
( |
| ) |
|
|
virtual |
Loads an entity.
Usually the Load() method for an entity type will set up its components, event listeners, etc. After being loaded, the entity will be ready for simulation.
When implementing this method, make sure to flag the entity with the LOADED
flag, so that world streaming system doesn't try to load your entity twice.
Implements tram::Entity.
◆ MessageHandler()
void tram::Ext::Kitchensink::TriggerAutosave::MessageHandler |
( |
Message & |
msg | ) |
|
|
virtual |
Allows entities to receive messages.
Whenever an entity is sent a Message, once the Message::Dispatch() function has been called, the entity will gets the message passed to it through this method.
Implements tram::Entity.
◆ Register()
static void tram::Ext::Kitchensink::TriggerAutosave::Register |
( |
| ) |
|
|
static |
◆ Serialize()
void tram::Ext::Kitchensink::TriggerAutosave::Serialize |
( |
| ) |
|
|
virtual |
◆ SetParameters()
void tram::Ext::Kitchensink::TriggerAutosave::SetParameters |
( |
| ) |
|
|
virtual |
◆ Unload()
void tram::Ext::Kitchensink::TriggerAutosave::Unload |
( |
| ) |
|
|
virtual |
Unloads an entity.
Usually the Load() method for an entity type will destroy its its components, event listeners, etc. After being unloaded, the entity have been removed from the simulation.
When implementing this method, make sure to clear your entity's LOADED flag, so that world streaming system can load the entity again.
Implements tram::Entity.
◆ UpdateParameters()
void tram::Ext::Kitchensink::TriggerAutosave::UpdateParameters |
( |
| ) |
|
|
virtual |
◆ collmodel
name_t tram::Ext::Kitchensink::TriggerAutosave::collmodel |
|
protected |
◆ model
name_t tram::Ext::Kitchensink::TriggerAutosave::model |
|
protected |
◆ physicscomponent
◆ rendercomponent
The documentation for this class was generated from the following file:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/extensions/kitchensink/entities.h