Epok Engine

EPOK RUNTIME

epok::bp::same_owner

Function · 2 overloads

Function

Performs `same owner` as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp
Header
blueprint_runtime.hpp
Overloads
2

Declaration 1 of 2

Declaration
constexpr bool same_owner(DataHandle a, DataHandle b)

Performs `same owner` as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
aDataHandleValue supplied for a. Keep referenced or pointed-to data valid for the complete call.
bDataHandleValue supplied for b. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "blueprint_runtime.hpp"

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

auto result = epok::bp::same_owner(a, b);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control.

Declared in runtime/blueprint_runtime.hpp:69

Declaration 2 of 2

Declaration
constexpr bool same_owner(ObjectId a, ObjectId b)

Performs `same owner` as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
aObjectIdValue supplied for a. Keep referenced or pointed-to data valid for the complete call.
bObjectIdValue supplied for b. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "blueprint_runtime.hpp"

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

auto result = epok::bp::same_owner(a, b);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control.

Declared in runtime/blueprint_runtime.hpp:66

Related members