Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Performs `attach to` as part of the object model module.
bool attach_to(ObjectId parent)Performs `attach to` as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
parent | ObjectId | Value 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.
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// ObjectId parent
epok::SceneComponent2D& object = /* obtain a valid instance */;
auto result = object.attach_to(parent);The boolean result makes success, availability or state explicit without exceptions.
Check the return value; `false` is part of normal control flow for many PSX resource operations.
Declared in runtime/object_model.hpp:578
attach_slotPerforms `attach slot` as part of the object model module.Methodclass_idPerforms `class id` as part of the object model module.Methodposition_xPerforms `position x` as part of the object model module.Methodposition_yPerforms `position y` as part of the object model module.MethodrotationPerforms `rotation` as part of the object model module.Methodset_positionSets position as part of the object model module.Methodset_rotationSets rotation as part of the object model module.Methodset_scaleSets scale as part of the object model module.Method