Epok Engine

EPOK RUNTIME

epok::gameplay_event

Function · 2 overloads

Function

Performs `gameplay event` as part of the utility module.

Belongs to
epok
Header
utility.hpp
Overloads
2

Declaration 1 of 2

Declaration
inline GameplayEventSample gameplay_event(QueueEvent value)

Performs `gameplay event` as part of the utility module.

ParameterTypeMeaning
valueQueueEventValue supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// QueueEvent value

auto result = epok::gameplay_event(value);

Why use it

It provides direct, allocation-conscious access to the utility module. 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/utility.hpp:160

Declaration 2 of 2

Declaration
inline QueueEvent gameplay_event(GameplayEventSample value)

Performs `gameplay event` as part of the utility module.

ParameterTypeMeaning
valueGameplayEventSampleValue supplied for value. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// GameplayEventSample value

auto result = epok::gameplay_event(value);

Why use it

It provides direct, allocation-conscious access to the utility module. 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/utility.hpp:161

Related members