VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrf::DtEntityStateComponentData Struct Reference

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.

Inheritance diagram for makVrf::DtEntityStateComponentData:
Inheritance graph
[legend]

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
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtEntityStateComponentData::DtEntityStateComponentData ( )
inline

Constructs a default-initialized data block.

myUUID is set to the null UUID, myIsLocal is false, and myCheckForNameReservation is true.

makVrf::DtEntityStateComponentData::DtEntityStateComponentData ( const DtEntityStateComponentData &  orig)
inline

Copy constructor. Performs a member-wise deep copy of orig.

Parameters
origThe source data block to copy from.

Member Function Documentation

DtEntityStateComponentData& makVrf::DtEntityStateComponentData::operator= ( const DtEntityStateComponentData &  rhs)
inline

Assignment operator. Performs a member-wise deep copy of rhs.

Parameters
rhsThe source data block to copy from.
Returns
A reference to this object after assignment.

References myCallsign, myCheckForNameReservation, myEntityId, myGlobalId, myIsLocal, myMarkingText, myOrbatId, mySidc, mySimEngineAddress, myUserData, and myUUID.

Referenced by makVrf::DtAggregateStateComponentData::operator=().

Member Data Documentation

DtString makVrf::DtEntityStateComponentData::myGlobalId
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=().

DtString makVrf::DtEntityStateComponentData::mySidc
protected

Visual Sidc code.

Referenced by operator=().

DtString makVrf::DtEntityStateComponentData::myMarkingText
protected

DIS-style marking text (max 32 chars as enforced by Legion).

Referenced by operator=().

DtString makVrf::DtEntityStateComponentData::myCallsign
protected

Optional callsign; stored independently from the Legion data store.

Referenced by operator=().

DtEntityIdentifier makVrf::DtEntityStateComponentData::myEntityId
protected

DIS entity identifier (site / host / entity number).

Referenced by operator=().

DtUUID makVrf::DtEntityStateComponentData::myUUID
protected

Simulation-wide UUID; backed by a raw byte array in the Legion data store.

Referenced by operator=().

bool makVrf::DtEntityStateComponentData::myIsLocal
protected

true when this entity is locally owned and published by this simulation process.

Referenced by operator=().

unsigned long long makVrf::DtEntityStateComponentData::myUserData = 0
protected

Application-defined 64-bit integer user payload; not reflected on the network.

Referenced by operator=().

unsigned long long makVrf::DtEntityStateComponentData::myOrbatId = 0
protected

Order-of-Battle identifier; not reflected on the network.

Referenced by operator=().

bool makVrf::DtEntityStateComponentData::myCheckForNameReservation
protected

When true, HLA name reservation must complete before the object is published.

Referenced by operator=().

DtSimulationAddress makVrf::DtEntityStateComponentData::mySimEngineAddress
protected

Simulation engine address (site/host); defaults to the entity identifier's simulation address.

Referenced by operator=().


The documentation for this struct was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)