Epok Engine

EPOK RUNTIME

epok::SceneLibrary::request_with_transition

Method · 1 overload

Method

Requests with transition as part of the gameplay api module.

Belongs to
epok::SceneLibrary
Header
gameplay_api.hpp
Overloads
1

Declaration

static
Declaration
static bool request_with_transition(uint32_t index,GameplayTransitionOptions value)

Requests with transition as part of the gameplay api module.

ParameterTypeMeaning
indexuint32_tValue supplied for index. Keep referenced or pointed-to data valid for the complete call.
valueGameplayTransitionOptionsValue supplied for value. 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 "gameplay_api.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t index
// GameplayTransitionOptions value

auto result = epok::SceneLibrary::request_with_transition(index, value);

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/gameplay_api.hpp:264

Related members