![]() |
VR-Forces Developer's Guide
|
Plain-old-data container for all serializable entity state fields.
Holds the state that is transferred between the next-frame and current-frame buffers during advanceFrame(). The struct is copyable and assignable so that the double-buffering mechanism can cheaply snapshot state each tick.

Public Types | |
| using | SimStateID = unsigned long long |
Public Member Functions | |
| DtEntityStateComponentData () | |
| DtEntityStateComponentData (const DtEntityStateComponentData &orig) | |
| DtEntityStateComponentData & | operator= (const DtEntityStateComponentData &rhs) |
Protected Attributes | |
| DtString | myGlobalId |
| DtString | mySidc |
| DtString | myMarkingText |
| DtString | myCallsign |
| DtEntityIdentifier | myEntityId |
| DtUUID | myUUID |
| bool | myIsLocal |
| unsigned long long | myUserData = 0 |
| unsigned long long | myOrbatId = 0 |
| bool | myCheckForNameReservation |
| DtSimulationAddress | mySimEngineAddress |
|
inline |
Constructs a default-initialized data block.
myUUID is set to the null UUID, myIsLocal is false, and myCheckForNameReservation is true.
|
inline |
Copy constructor. Performs a member-wise deep copy of orig.
| orig | The source data block to copy from. |
|
inline |
Assignment operator. Performs a member-wise deep copy of rhs.
| rhs | The source data block to copy from. |
References myCallsign, myCheckForNameReservation, myEntityId, myGlobalId, myIsLocal, myMarkingText, myOrbatId, mySidc, mySimEngineAddress, myUserData, and myUUID.
Referenced by makVrf::DtAggregateStateComponentData::operator=().
|
protected |
Accessor/mutator for the network-layer global object identifier string.
Accessor/mutator for the DIS entity identifier. Accessor/mutator for the simulation-wide unique identifier (UUID). Accessor/mutator for the DIS marking text (clamped to 32 characters by Legion). Accessor/mutator for the optional callsign string. Accessor/mutator for the local-ownership flag. Accessor/mutator for an arbitrary application-defined 64-bit integer payload. Accessor/mutator for the Order of Battle (ORBAT) identifier. Accessor/mutator controlling whether HLA name reservation should be performed before publishing. Accessor/mutator for the simulation engine address (site/host pair).
When not explicitly set this falls back to the simulation address derived from the entity identifier. Accessor/mutator for the visual Sidc Code. Network-layer global object identifier string.
Referenced by operator=().
|
protected |
Visual Sidc code.
Referenced by operator=().
|
protected |
DIS-style marking text (max 32 chars as enforced by Legion).
Referenced by operator=().
|
protected |
Optional callsign; stored independently from the Legion data store.
Referenced by operator=().
|
protected |
DIS entity identifier (site / host / entity number).
Referenced by operator=().
|
protected |
Simulation-wide UUID; backed by a raw byte array in the Legion data store.
Referenced by operator=().
|
protected |
true when this entity is locally owned and published by this simulation process.
Referenced by operator=().
Application-defined 64-bit integer user payload; not reflected on the network.
Referenced by operator=().
Order-of-Battle identifier; not reflected on the network.
Referenced by operator=().
|
protected |
When true, HLA name reservation must complete before the object is published.
Referenced by operator=().
|
protected |
Simulation engine address (site/host); defaults to the entity identifier's simulation address.
Referenced by operator=().