Why use it
It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
Forward-only collision hook.
virtual void trigger_event(ObjectId other,TriggerPhase phase)Forward-only collision hook.
| Parameter | Type | Meaning |
|---|---|---|
other | ObjectId | Value supplied for other. Keep referenced or pointed-to data valid for the complete call. |
phase | TriggerPhase | Value supplied for phase. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// ObjectId other
// TriggerPhase phase
epok::ActorComponent& object = /* obtain a valid instance */;
object.trigger_event(other, phase);It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
Declared in runtime/object_model.hpp:496
attach_slotPerforms `attach slot` as part of the object model module.Methodbegin_playBegins play as part of the object model module.Methodblueprint_observePerforms `blueprint observe` as part of the object model module.Methodclass_idPerforms `class id` as part of the object model module.Methodend_playEnds play as part of the object model module.Methodframe_updatePerforms `frame update` as part of the object model module.Methodget_ownerReturns owner as part of the object model module.MethodnamePerforms `name` as part of the object model module.Methodon_disablePerforms `on disable` as part of the object model module.Methodon_enablePerforms `on enable` as part of the object model module.Methodon_framePerforms `on frame` as part of the object model module.Methodon_triggerPerforms `on trigger` as part of the object model module.Method