Epok Engine

EPOK RUNTIME

epok::bp::spawn_actor

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

Bounded actor spawn for the SpawnActor node.

Belongs to
epok::bp
Header
actor_blueprint.hpp
Overloads
1

Declaration

Declaration
inline ObjectId spawn_actor(Actor* context, uint64_t class_id, ObjectId logical_parent)

Bounded actor spawn for the SpawnActor node.

ParameterTypeMeaning
contextActor *Not documented; consult the linked header.
class_iduint64_tNot documented; consult the linked header.
logical_parentObjectIdNot documented; consult the linked header.

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

Example sketch

C++ example
#include "actor_blueprint.hpp"

// Assume these named values have been initialized with valid data:
// Actor * context
// uint64_t class_id
// ObjectId logical_parent

auto result = epok::bp::spawn_actor(context, class_id, logical_parent);

Trade-offs and warnings

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

Declared in runtime/actor_blueprint.hpp:73

Related members