Table of Contents

Struct Scoring

Namespace
rF2SharedMemoryNet.RF2Data.Structs
Assembly
rF2SharedMemoryNet.dll

Represents the scoring data structure used in rFactor 2 to provide information about the current race session, including scoring details and vehicle-specific scoring data.

public struct Scoring
Inherited Members

Remarks

This structure is designed for interop scenarios and is used to exchange scoring information between rFactor 2 and external applications. It contains session-wide scoring details, as well as an array of vehicle-specific scoring data.

The structure is updated periodically, with the VersionUpdateBegin and VersionUpdateEnd fields indicating the start and end of an update cycle. The BytesUpdatedHint field provides a hint about the number of bytes updated during the last cycle.

Fields

BytesUpdatedHint

Represents the number of bytes written to the structure during the last update.

public int BytesUpdatedHint

Field Value

int

Remarks

This value provides a hint about the amount of data updated in the structure. It may be useful for tracking or debugging purposes.

ScoringInfo

Represents the scoring information for the RF2 system.

public ScoringInfo ScoringInfo

Field Value

ScoringInfo

Remarks

This field contains detailed scoring data related to the RF2 system. It is intended to be used for accessing or manipulating scoring-related information.

Vehicles

Represents an array of vehicle scoring data for mapped vehicles.

public VehicleScoring[] Vehicles

Field Value

VehicleScoring[]

Remarks

The array contains scoring information for up to MAX_MAPPED_VEHICLES vehicles. Each element corresponds to a specific vehicle's scoring data.

VersionUpdateBegin

Represents the version number of the buffer update process.

public uint VersionUpdateBegin

Field Value

uint

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

uint

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.