Struct ScoringInfo
- Namespace
- rF2SharedMemoryNet.RF2Data.Structs
- Assembly
- rF2SharedMemoryNet.dll
Represents scoring information for a session in rFactor 2, including track details, session timing, weather conditions, and multiplayer settings.
public struct ScoringInfo
- Inherited Members
Remarks
This structure provides detailed information about the current state of a session in rFactor 2, including track name, session type, timing data, weather conditions, and multiplayer server details. It is primarily used for telemetry and plugin development to monitor and interact with the game state.
Fields
AmbientTemp
Represents the ambient temperature in degrees Celsius.
public double AmbientTemp
Field Value
AvgPathWetness
Represents the average wetness on the main path, expressed as a value between 0.0 and 1.0.
public double AvgPathWetness
Field Value
CurrentET
Represents the current session time.
public double CurrentET
Field Value
DarkCloud
Represents the darkness level of clouds in the weather system.
public double DarkCloud
Field Value
EndET
Ending time of the session.
public double EndET
Field Value
Expansion
For future expansion.
public byte[] Expansion
Field Value
- byte[]
GameMode
Represents the game mode for multiplayer functionality.
public byte GameMode
Field Value
Remarks
See GameMode for more details on the possible values.
GamePhase
Represents the current phase of the game session.
public byte GamePhase
Field Value
Remarks
See GamePhase for more details on the possible values."/>
InRealtime
Indicates whether the operation is performed in real-time as opposed to being monitored.
public byte InRealtime
Field Value
IsPasswordProtected
Indicates whether the server is password protected.
public byte IsPasswordProtected
Field Value
LapDist
Represents the distance traveled around the track in meters.
public double LapDist
Field Value
Remarks
This field stores the current lap distance for a vehicle or entity on the track. The value is typically updated as the entity progresses along the track.
MaxLaps
Max laps for the session.
public int MaxLaps
Field Value
MaxPathWetness
Represents the maximum wetness level on the main path, ranging from 0.0 to 1.0.
public double MaxPathWetness
Field Value
MaxPlayers
Represents the maximum number of vehicles that can be in the session.
public int MaxPlayers
Field Value
MinPathWetness
Represents the minimum wetness level on the main path.
public double MinPathWetness
Field Value
NumRedLights
Represents the number of red lights in the start sequence.
public byte NumRedLights
Field Value
Remarks
This value indicates the total count of red lights displayed during the start sequence. It can be used to determine the duration or configuration of the sequence.
NumVehicles
Represents the current number of vehicles.
public int NumVehicles
Field Value
PlayerName
Represents the name of the player, including any possible multiplayer override.
public byte[] PlayerName
Field Value
- byte[]
Remarks
Array of bytes with a fixed size of 32 bytes.
PlrFileName
Represents a byte array that may be encoded to form a legal filename.
public byte[] PlrFileName
Field Value
- byte[]
Remarks
The array is fixed in size to 64 bytes and may contain encoded data to ensure compatibility with file naming conventions.
Pointer1
Not used
public byte[] Pointer1
Field Value
- byte[]
Pointer2
Not used
public byte[] Pointer2
Field Value
- byte[]
Raining
Represents the severity of rainfall on a scale from 0.0 to 1.0.
public double Raining
Field Value
SectorFlag
Represents the flags indicating the presence of local yellow warnings in each sector.
public sbyte[] SectorFlag
Field Value
- sbyte[]
Remarks
The array contains three elements, each representing a sector. The mapping of sectors to array indices (whether sector 0 corresponds to the first or last index) is not explicitly defined and should be verified.
ServerName
Represents the name of the server as a fixed-size byte array.
public byte[] ServerName
Field Value
- byte[]
Remarks
The array is marshaled as a fixed-size unmanaged array with a maximum size of 32 bytes.
ServerPort
Represents the port number of the server.
public ushort ServerPort
Field Value
ServerPublicIP
Represents the public IP address of the server.
public uint ServerPublicIP
Field Value
Session
Represents the current session of the event.
public int Session
Field Value
Remarks
0 | Test day session. |
1-4 | Practice sessions, numbered 1 to 4. |
5-8 | Qualifying sessions, numbered 5 to 8. |
9 | Warmup session. |
10-13 | Race session |
StartET
Represents the start time of the event, measured in seconds since midnight.
public float StartET
Field Value
StartLight
Represents the starting light frame number for a track.
public byte StartLight
Field Value
Remarks
The value of this field depends on the specific track configuration.
TrackName
Represents the name of the current track.
public byte[] TrackName
Field Value
- byte[]
Remarks
The track name is stored as a fixed-size array of 64 bytes.
TrackTemp
Represents the temperature of the track in degrees Celsius.
public double TrackTemp
Field Value
Wind
Represents the wind speed as a three-dimensional vector.
public Vec3 Wind
Field Value
YellowFlagState
Represents the current state of the yellow flag during a full-course caution.
public sbyte YellowFlagState
Field Value
Remarks
See YellowFlagState for more details on the possible values.