#include <entity.h>
|
static void | RegisterType (name_t name, Entity *(*constr_func)(const SharedEntityData &, const ValueArray &), void(*destr_func)(Entity *), const uint32_t *fields, size_t fieldcount) |
|
static void | RegisterType (name_t name, Entity *(*constr_func)(const SharedEntityData &, const ValueArray &), void(*destr_func)(Entity *), std::initializer_list< FieldInfo > fields) |
|
static void | UpdateFromList () |
| Updates all of the entities in the update list. More...
|
|
static Entity * | Make (name_t type, File *file) |
| Loads an Entity from a File. More...
|
|
static Entity * | Find (id_t entity_id) |
|
static Entity * | Find (name_t entity_name) |
|
◆ anonymous enum
anonymous enum : uint32_t |
Enumerator |
---|
FIELD_SERIALIZE | |
◆ Entity() [1/3]
◆ Entity() [2/3]
tram::Entity::Entity |
( |
name_t |
name | ) |
|
◆ Entity() [3/3]
◆ ~Entity()
tram::Entity::~Entity |
( |
| ) |
|
|
virtual |
◆ AddUpdate()
void tram::Entity::AddUpdate |
( |
| ) |
|
|
protected |
Adds entity to update list.
After being added to the update list, the entity's Update() method will be called every time UpdateFromList() is called.
◆ CheckTransition()
void tram::Entity::CheckTransition |
( |
| ) |
|
◆ EventHandler()
virtual void tram::Entity::EventHandler |
( |
Event & |
event | ) |
|
|
inlinevirtual |
◆ Find() [1/2]
◆ Find() [2/2]
◆ FireSignal() [1/2]
void tram::Entity::FireSignal |
( |
signal_t |
type | ) |
|
|
inlineprotected |
◆ FireSignal() [2/2]
◆ GetCell()
◆ GetID()
id_t tram::Entity::GetID |
( |
| ) |
const |
|
inline |
◆ GetLocation()
const vec3 & tram::Entity::GetLocation |
( |
| ) |
|
|
inline |
◆ GetName()
name_t tram::Entity::GetName |
( |
| ) |
const |
|
inline |
◆ GetRotation()
const quat & tram::Entity::GetRotation |
( |
| ) |
|
|
inline |
◆ GetSignalTable()
◆ GetType()
virtual name_t tram::Entity::GetType |
( |
| ) |
|
|
pure virtual |
◆ IsAutoLoad()
bool tram::Entity::IsAutoLoad |
( |
| ) |
const |
|
inline |
◆ IsChanged()
bool tram::Entity::IsChanged |
( |
| ) |
const |
|
inline |
◆ IsInInterior()
bool tram::Entity::IsInInterior |
( |
| ) |
const |
|
inline |
◆ IsLoaded()
bool tram::Entity::IsLoaded |
( |
| ) |
const |
|
inline |
◆ IsPersistent()
bool tram::Entity::IsPersistent |
( |
| ) |
const |
|
inline |
◆ Load()
virtual void tram::Entity::Load |
( |
| ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ Make()
◆ MessageHandler()
virtual void tram::Entity::MessageHandler |
( |
Message & |
msg | ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ Register()
void tram::Entity::Register |
( |
| ) |
|
|
protected |
◆ RegisterType() [1/2]
◆ RegisterType() [2/2]
◆ RemoveUpdate()
void tram::Entity::RemoveUpdate |
( |
| ) |
|
|
protected |
Remove entity from the update list.
◆ Serialize()
virtual void tram::Entity::Serialize |
( |
| ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ SetAutoLoad()
void tram::Entity::SetAutoLoad |
( |
bool |
auto_load | ) |
|
|
inline |
◆ SetLocation()
void tram::Entity::SetLocation |
( |
vec3 |
loc | ) |
|
|
inline |
◆ SetParameters()
virtual void tram::Entity::SetParameters |
( |
| ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ SetPersistent()
void tram::Entity::SetPersistent |
( |
bool |
persistent | ) |
|
|
inline |
◆ SetRotation()
void tram::Entity::SetRotation |
( |
quat |
rot | ) |
|
|
inline |
◆ Unload()
virtual void tram::Entity::Unload |
( |
| ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ Update()
virtual void tram::Entity::Update |
( |
| ) |
|
|
inlinevirtual |
◆ UpdateFromList()
void tram::Entity::UpdateFromList |
( |
| ) |
|
|
static |
Updates all of the entities in the update list.
◆ UpdateParameters()
virtual void tram::Entity::UpdateParameters |
( |
| ) |
|
|
pure virtual |
Implemented in tram::Crate, tram::Decoration, tram::Light, tram::Marker, tram::Player, tram::Sound, tram::StaticWorldObject, tram::Trigger, tram::Ext::Design::Button, tram::Ext::Design::Decoration, tram::Ext::Design::Breakable, tram::Ext::Design::Water, tram::Ext::Design::Train, tram::Ext::Design::Pickup, tram::Ext::Design::DebugText, tram::Ext::Design::DebugShape, tram::Ext::Design::TriggerAutosave, tram::Ext::Design::TriggerHurt, tram::Ext::Design::TriggerOnce, tram::Ext::Design::TriggerMultiple, tram::Ext::Design::TriggerPush, tram::Ext::Design::TriggerRemove, tram::Ext::Design::TriggerTeleport, tram::Ext::Design::TriggerPlayerMovement, and tram::Ext::Kitchensink::QuestEntity.
◆ UpdateTransform()
void tram::Entity::UpdateTransform |
( |
const vec3 & |
loc, |
|
|
const quat & |
rot |
|
) |
| |
|
inline |
◆ WorldCell
◆ auto_load
bool tram::Entity::auto_load = true |
|
protected |
◆ cell
◆ changed
bool tram::Entity::changed = false |
|
protected |
◆ flags
uint32_t tram::Entity::flags = 0 |
|
protected |
◆ id
id_t tram::Entity::id = 0 |
|
protected |
◆ in_interior
bool tram::Entity::in_interior = false |
|
protected |
◆ is_loaded
bool tram::Entity::is_loaded = false |
|
protected |
◆ is_persistent
bool tram::Entity::is_persistent = true |
|
protected |
◆ is_serializable
bool tram::Entity::is_serializable = true |
|
protected |
◆ location
vec3 tram::Entity::location = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ name
◆ rotation
quat tram::Entity::rotation = {1.0f, 0.0f, 0.0f, 0.0f} |
|
protected |
◆ signals
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/entity.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/entity.cpp