Epok Engine

EPOK RUNTIME

epok::dispatch_trigger

Function · 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.

Function

Collision is owned by the spatial services, not by the Level: they resolve the legacy slot to its actor and call this, which fans the event out to the owner's components in registration order.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
inline size_t dispatch_trigger(Level& level, ObjectId actor, DataHandle other, TriggerPhase phase)

Collision is owned by the spatial services, not by the Level: they resolve the legacy slot to its actor and call this, which fans the event out to the owner's components in registration order.

ParameterTypeMeaning
levelLevel &Not documented; consult the linked header.
actorObjectIdNot documented; consult the linked header.
otherDataHandleNot documented; consult the linked header.
phaseTriggerPhaseNot documented; consult the linked header.

Returns: size_t. Consult the linked header for its meaning.

Example sketch

C++ example
#include "object_model.hpp"

// Assume these named values have been initialized with valid data:
// Level & level
// ObjectId actor
// DataHandle other
// TriggerPhase phase

auto result = epok::dispatch_trigger(level, actor, other, phase);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/object_model.hpp:1777

Related members