![]() |
VR-Forces Developer's Guide
|
DtEntitySnapshot - Complete state of an entity at a point in time. VRF-agnostic intermediate representation used by processors and serializers. Raw values serialized to JSON on demand.
Public Attributes | |
| std::string | uuid |
| std::string | objectType |
| ::DtEntityIdentifier | entityId |
| DtEntityType | entityType |
| std::string | marking |
| std::string | label |
| int | forceIdentifier = 0 |
| int | iffMode1Code = 0 |
| int | iffMode2Code = 0 |
| int | iffMode3ACode = 0 |
| int | iffMode3CCode = 0 |
| std::array< double, 3 > | location = {0.0, 0.0, 0.0} |
| double | heading = 0.0 |
| double | speed = 0.0 |
| double | movementDirection = 0.0 |
| double | groundSpeed = 0.0 |
| double | climbRate = 0.0 |
| int | damageState = 0 |
| bool | isConcealed = false |
| bool | isSmoking = false |
| bool | isFlaming = false |
| bool | isPowerPlantOn = true |
| bool | isActive = true |
| bool | mobilityKilledState |
| bool | firepowerKilledState |
| bool | hasAmmunitionSupply = false |
| bool | hasFuelSupply = false |
| bool | hasRecoveryCapability = false |
| bool | hasRepairCapability = false |
| bool | commandEnabled = true |
| std::vector< std::string > | availableCommands |
| Json::Value | currentTasks {Json::arrayValue} |
| std::vector< DtResourceEntry > | resources |
| std::string | embarkedOn |
| std::string | sidc |
| double | lastUpdateTime = 0.0 |
| std::string DtDatasource::DtEntitySnapshot::uuid |
| std::string DtDatasource::DtEntitySnapshot::objectType |
| ::DtEntityIdentifier DtDatasource::DtEntitySnapshot::entityId |
| DtEntityType DtDatasource::DtEntitySnapshot::entityType |
| std::string DtDatasource::DtEntitySnapshot::marking |
| std::string DtDatasource::DtEntitySnapshot::label |
| int DtDatasource::DtEntitySnapshot::forceIdentifier = 0 |
| int DtDatasource::DtEntitySnapshot::iffMode1Code = 0 |
| int DtDatasource::DtEntitySnapshot::iffMode2Code = 0 |
| int DtDatasource::DtEntitySnapshot::iffMode3ACode = 0 |
| int DtDatasource::DtEntitySnapshot::iffMode3CCode = 0 |
| std::array<double, 3> DtDatasource::DtEntitySnapshot::location = {0.0, 0.0, 0.0} |
| double DtDatasource::DtEntitySnapshot::heading = 0.0 |
| double DtDatasource::DtEntitySnapshot::speed = 0.0 |
| double DtDatasource::DtEntitySnapshot::movementDirection = 0.0 |
| double DtDatasource::DtEntitySnapshot::groundSpeed = 0.0 |
| double DtDatasource::DtEntitySnapshot::climbRate = 0.0 |
| int DtDatasource::DtEntitySnapshot::damageState = 0 |
| bool DtDatasource::DtEntitySnapshot::isConcealed = false |
| bool DtDatasource::DtEntitySnapshot::isSmoking = false |
| bool DtDatasource::DtEntitySnapshot::isFlaming = false |
| bool DtDatasource::DtEntitySnapshot::isPowerPlantOn = true |
| bool DtDatasource::DtEntitySnapshot::isActive = true |
| bool DtDatasource::DtEntitySnapshot::mobilityKilledState |
| bool DtDatasource::DtEntitySnapshot::firepowerKilledState |
| bool DtDatasource::DtEntitySnapshot::hasAmmunitionSupply = false |
| bool DtDatasource::DtEntitySnapshot::hasFuelSupply = false |
| bool DtDatasource::DtEntitySnapshot::hasRecoveryCapability = false |
| bool DtDatasource::DtEntitySnapshot::hasRepairCapability = false |
| bool DtDatasource::DtEntitySnapshot::commandEnabled = true |
True if the session's role allows commanding this entity.
| std::vector<std::string> DtDatasource::DtEntitySnapshot::availableCommands |
| Json::Value DtDatasource::DtEntitySnapshot::currentTasks {Json::arrayValue} |
Current tasks running on this entity, as a JSON array of {"CommandType": "...", "Parameters": {...}} objects. Pre-serialized here so SDK types do not leak into the data layer.
| std::vector<DtResourceEntry> DtDatasource::DtEntitySnapshot::resources |
Consumable resources; populated only when the server is subscribed for resource updates.
| std::string DtDatasource::DtEntitySnapshot::embarkedOn |
UUID of the host entity this object is embarked on, empty if not embarked.
| std::string DtDatasource::DtEntitySnapshot::sidc |
| double DtDatasource::DtEntitySnapshot::lastUpdateTime = 0.0 |