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::SceneComponent3D& 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:558
attach_slotPerforms `attach slot` as part of the object model module.Methodbind_localNo legacy slot: the component owns the transform.Methodbind_slotCanonical storage: the legacy entity slot owns the transform and everything that already reads it (collision, rendering, motion interpolation) keeps working.Methodclass_idPerforms `class id` as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodlocal_transformPerforms `local transform` as part of the object model module.Methodset_local_positionSets local position as part of the object model module.Methodset_local_rotationSets local rotation as part of the object model module.Methodset_local_scaleSets local scale as part of the object model module.Methodset_local_transformSets local transform as part of the object model module.MethodteleportPerforms `teleport` as part of the object model module.Methodworld_affinePerforms `world affine` as part of the object model module.Method