Struct Telemetry
- Namespace
- rF2SharedMemoryNet.RF2Data.Structs
- Assembly
- rF2SharedMemoryNet.dll
Represents telemetry data for rFactor 2, including information about vehicles and update status.
public struct Telemetry
- Inherited Members
Remarks
This structure is used to store telemetry data for rFactor 2, including details about the current number of vehicles and their telemetry information. It also provides versioning and update hints to help consumers determine the state of the data buffer.
Fields
BytesUpdatedHint
Represents the number of bytes written to the structure during the last update.
public int BytesUpdatedHint
Field Value
Remarks
This value provides a hint about the amount of data updated in the structure. It may be useful for tracking or debugging purposes.
NumVehicles
Represents the current number of vehicles.
public int NumVehicles
Field Value
Remarks
This field holds the count of vehicles currently tracked or managed.
Vehicles
Represents an array of telemetry data for vehicles mapped in the simulation.
public VehicleTelemetry[] Vehicles
Field Value
Remarks
The array contains telemetry information for up to MAX_MAPPED_VEHICLES vehicles. Each element corresponds to a specific vehicle's telemetry data.
VersionUpdateBegin
Represents the version number of the buffer update process.
public uint VersionUpdateBegin
Field Value
Remarks
This value is incremented immediately before the buffer is written to, indicating the start of an update. It can be used to track or verify the state of the buffer during write operations.
VersionUpdateEnd
Represents the version update counter, which is incremented after a buffer write operation is completed.
public uint VersionUpdateEnd
Field Value
Remarks
This field is used to track the completion of buffer write operations. It is incremented automatically after each write to indicate the end of the update process.