Epok Engine

EPOK RUNTIME

epok::bp::api::play_effect_component

Function · 2 overloads

Function

Starts effect component as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp::api
Header
blueprint_api.hpp
Overloads
2

Declaration 1 of 2

Declaration
effects::Handle play_effect_component(DataHandle)

Starts effect component as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
arg1DataHandleValue supplied for arg1. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// DataHandle arg1

auto result = epok::bp::api::play_effect_component(arg1);

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

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/blueprint_api.hpp:13

Declaration 2 of 2

Declaration
inline effects::Handle play_effect_component(ObjectId target)

Starts effect component as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
targetObjectIdValue supplied for target. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId target

auto result = epok::bp::api::play_effect_component(target);

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

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/blueprint_api.hpp:75

Related members