Epok Engine

EPOK RUNTIME

epok::TextComponent::set_text_word

Method · 1 overload

Method

Sets text word as part of the object model module.

Belongs to
epok::TextComponent
Header
object_model.hpp
Overloads
1

Declaration

Declaration
bool set_text_word(uint32_t index,uint32_t packed)

Sets text word as part of the object model module.

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

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

epok::TextComponent& object = /* obtain a valid instance */;

auto result = object.set_text_word(index, packed);

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/object_model.hpp:812

Related members