PacketSessionData class
Constructors

PacketSessionData({required int m_weather, required int m_trackTemperature, required int m_airTemperature, required int m_totalLaps, required int m_trackLength, required int m_sessionType, required int m_trackId, required int m_formula, required int m_sessionTimeLeft, required int m_sessionDuration, required int m_pitSpeedLimit, required int m_gamePaused, required int m_isSpectating, required int m_spectatorCarIndex, required int m_sliProNativeSupport, required int m_numMarshalZones, required List<MarshalZone> m_marshalZones, required int m_safetyCarStatus, required int m_networkGame, required int m_numWeatherForecastSamples, required List<WeatherForecastSample> m_weatherForecastSamples, required int m_forecastAccuracy, required int m_aiDifficulty, required int m_seasonLinkIdentifier, required int m_weekendLinkIdentifier, required int m_sessionLinkIdentifier, required int m_pitStopWindowIdealLap, required int m_pitStopWindowLatestLap, required int m_pitStopRejoinPosition, required int m_steeringAssist, required int m_brakingAssist, required int m_gearboxAssist, required int m_pitAssist, required int m_pitReleaseAssist, required int m_ERSAssist, required int m_DRSAssist, required int m_dynamicRacingLine, required int m_dynamicRacingLineType, required int m_gameMode, required int m_ruleSet, required int m_timeOfDay, required int m_sessionLength})

Properties

hashCode
→ int

The hash code for this object.
no setterinherited

m_aiDifficulty
→ int

AI Difficulty rating – 0110
final

m_airTemperature
→ int

Air temp. in degrees celsius
final

m_brakingAssist
→ int

0 = off, 1 = low, 2 = medium, 3 = high
final

m_DRSAssist
→ int

0 = off, 1 = on
final

m_dynamicRacingLine
→ int

0 = off, 1 = on
final

m_dynamicRacingLineType
→ int

0 = off, 1 = corners only, 2 = full
final

m_ERSAssist
→ int

0 = off, 1 = on
final

m_forecastAccuracy
→ int

0 = Perfect, 1 = Approximate
final

m_formula
→ int

Formula, 0 = F1 Modern, 1 = F1 Classic, 2 = F2,
3 = F1 Generic
final

m_gameMode
→ int

final

m_gamePaused
→ int

Whether the game is paused
final

m_gearboxAssist
→ int

1 = manual, 2 = manual & suggested gear, 3 = auto
final

final

m_isSpectating
→ int

Whether the player is spectating
final

m_marshalZones
→ List<MarshalZone>

List of marshal zones – max 21
final

m_networkGame
→ int

0 = offline, 1 = online
final

m_numMarshalZones
↔ int

Number of marshal zones to follow
getter/setter pair

m_numWeatherForecastSamples
↔ int

Number of weather samples to follow
getter/setter pair

m_pitAssist
→ int

0 = off, 1 = on
final

m_pitReleaseAssist
→ int

0 = off, 1 = on
final

m_pitSpeedLimit
→ int

Pit speed limit in kilometres per hour
final

m_pitStopRejoinPosition
→ int

Predicted position to rejoin at (player)
final

m_pitStopWindowIdealLap
→ int

Ideal lap to pit on for current strategy (player)
final

m_pitStopWindowLatestLap
→ int

Latest lap to pit on for current strategy (player)
final

m_ruleSet
→ int

final

m_safetyCarStatus
→ int

0 = no safety car, 1 = full
final

m_seasonLinkIdentifier
→ int

Identifier for season  persists across saves
final

m_sessionDuration
→ int

Session duration in seconds
final

m_sessionLength
→ int

final

m_sessionLinkIdentifier
→ int

Identifier for session  persists across saves
final

m_sessionTimeLeft
→ int

Time left in session in seconds
final

m_sessionType
→ int

0 = unknown, 1 = P1, 2 = P2, 3 = P3, 4 = Short P
5 = Q1, 6 = Q2, 7 = Q3, 8 = Short Q, 9 = OSQ
10 = R, 11 = R2, 12 = R3, 13 = Time Trial
final

m_sliProNativeSupport
→ int

SLI Pro support, 0 = inactive, 1 = active
final

m_spectatorCarIndex
→ int

Index of the car being spectated
final

m_steeringAssist
→ int

0 = off, 1 = on
final

m_timeOfDay
→ int

final

m_totalLaps
→ int

Total number of laps in this
final

m_trackId
→ int

1 for unknown, 021 for tracks, see appendix
final

m_trackLength
→ int

Track length in metres
final

m_trackTemperature
→ int

Track temp. in degrees Celsius
final

m_weather
→ int

Weather  0 = clear, 1 = light cloud, 2 = overcast
3 = light rain, 4 = heavy rain, 5 = storm
final

m_weatherForecastSamples
→ List<WeatherForecastSample>

Array of weather forecast samples
final

m_weekendLinkIdentifier
→ int

Identifier for weekend  persists across saves
final

runtimeType
→ Type

A representation of the runtime type of the object.
no setterinherited
Methods

noSuchMethod(Invocation invocation)
→ dynamic

Invoked when a nonexistent method or property is accessed.
inherited

toString()
→ String

A string representation of this object.
inherited