Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Function template · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Returns component as part of the object model module.
template<class T> T* get_component(const Actor& owner) constReturns component as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
owner | const Actor & | Not documented; consult the linked header. |
Returns: T *. Consult the linked header for its meaning.
#include "object_model.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// T
// Assume these named values have been initialized with valid data:
// const Actor & owner
epok::Level& object = /* obtain a valid instance */;
auto result = object.get_component<T>(owner);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:1410
actor_active---- activation ----------------------------------------------------------------Methodactor_atPerforms `actor at` as part of the object model module.Methodactor_countPerforms `actor count` as part of the object model module.Methodadd_component---- components ----------------------------------------------------------------Function templatebindBinds the slot table and registers the Level itself.Methodclass_idPerforms `class id` as part of the object model module.Methodcreate_scene_scriptThe scene script is created by the loader; it is never part of the actor table.Methoddestroy_actor---- destruction --------------------------------------------------------------- A request made inside a callback marks the actor immediately (it receives no further events) and runs the teardown when the current batch finishes.Methodend_play_allExit order: scene script first while the actors are still alive, then every actor.Methodframe_updateOnce per rendered frame, even while paused (legacy Behaviour parity).Methodget_componentsReturns components as part of the object model module.Function templateregistryPerforms `registry` as part of the object model module.Method