Epok Engine

EPOK RUNTIME

epok::bp::class_is_a

Function · 1 overload

Function

Performs `class is a` as part of compiled Blueprint execution and object interaction.

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

Declaration

Declaration
inline bool class_is_a(ClassId child, ClassId parent)

Performs `class is a` as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
childClassIdValue supplied for child. Keep referenced or pointed-to data valid for the complete call.
parentClassIdValue supplied for parent. 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_spawn.hpp"

// Assume these named values have been initialized with valid data:
// ClassId child
// ClassId parent

auto result = epok::bp::class_is_a(child, parent);

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.

Declared in runtime/blueprint_spawn.hpp:7

Related members