Epok Engine

EPOK RUNTIME

epok::bp::component_owner

Function · 1 overload

Function

Owning actor of a component, and its handle/slot, for Component-family Blueprints.

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

Declaration

Declaration
inline Actor* component_owner(ActorComponent* component)

Owning actor of a component, and its handle/slot, for Component-family Blueprints.

ParameterTypeMeaning
componentActorComponent *Value supplied for component. Keep referenced or pointed-to data valid for the complete call.

Returns: Actor *. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "actor_blueprint.hpp"

// Assume these named values have been initialized with valid data:
// ActorComponent * component

auto result = epok::bp::component_owner(component);

Why use it

It provides direct, allocation-conscious access to compiled Blueprint execution and object interaction. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/actor_blueprint.hpp:41

Related members