Epok Engine

EPOK RUNTIME

epok::ObjectBatch8::item5

Field

Field

Exposes `item5` on `epok::ObjectBatch8` for the object model module.

Belongs to
epok::ObjectBatch8
Header
object_model.hpp

Declaration

Declaration
ObjectId item5

Exposes `item5` on `epok::ObjectBatch8` for the object model module.

Type
ObjectId
Storage
Per instance

Example

C++ example
#include "object_model.hpp"

epok::ObjectBatch8& object = /* obtain a valid instance */;
auto value = object.item5;

// When mutation is valid for this object:
// object.item5 = replacement;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in runtime/object_model.hpp:53