Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 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.
---- activation ----------------------------------------------------------------
bool actor_active(const Actor& actor) const---- activation ----------------------------------------------------------------
| Parameter | Type | Meaning |
|---|---|---|
actor | const Actor & | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// const Actor & actor
epok::Level& object = /* obtain a valid instance */;
auto result = object.actor_active(actor);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:1327
actor_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_componentReturns component as part of the object model module.Function templateget_componentsReturns components as part of the object model module.Function templateregistryPerforms `registry` as part of the object model module.Method