Table of Contents

Enum YellowFlagState

Namespace
rF2SharedMemoryNet.RF2Data.Enums
Assembly
rF2SharedMemoryNet.dll

Represents the various states of a yellow flag during a race.

public enum YellowFlagState

Fields

Invalid = -1

Invalid state, used for error handling or uninitialized values.

LastLap = 5

Last lap of Yellow Flag

NoYellowFlag = 0

Normal racing conditions without any yellow flag.

PendingYellowFlag = 1

Pending yellow flag state, indicating that a yellow flag condition is about to be applied.

PitLeadLap = 3

Lead allowed to pit

PitsClosed = 2

Pits are closed, typically during a yellow flag condition to prevent pit stops.

PitsOpen = 4

Pits are open, allowing vehicles to enter the pits during a yellow flag condition.

RaceHalt = 7

Race is halted

ResumeRacing = 6

Resume racing after a yellow flag condition has been cleared or resolved.

Remarks

The YellowFlagState enum defines the progression of states that occur during a yellow flag scenario. These states are used to manage race conditions, such as closing pits, opening pits, and resuming racing.