Skip to content

Game.Routes.TaxiStandFlags

Assembly: Assembly-CSharp
Namespace: Game.Routes

Type: enum

Base: System.Enum (underlying type: System.UInt32)

Summary:
Bitmask/flags enum used to represent configuration or state flags for taxi stands. Marked with [Flags] so values can be combined with bitwise operations. Currently defines a single flag (RequireVehicles). The default value (0) indicates no flags set.


Fields

  • RequireVehicles = 1u
    Indicates the taxi stand has the "require vehicles" option enabled. Interpretations depend on game code that reads this flag (for example, the stand may require vehicles to be assigned or available before it becomes active). Value is the first bit (0x1).

Properties

  • None
    This enum defines no additional properties. Use standard Enum functionality (e.g., Enum.HasFlag or bitwise operators) to inspect or modify values.

Constructors

  • None (implicit)
    Enums do not declare explicit constructors in C#. The default underlying value 0 corresponds to "no flags set."

Methods

  • None (custom)
    There are no methods defined on this enum. Use System.Enum methods or bitwise operations:
  • flags.HasFlag(TaxiStandFlags.RequireVehicles)
  • (flags & TaxiStandFlags.RequireVehicles) != 0

Usage Example

// Assign a flag
TaxiStandFlags flags = TaxiStandFlags.RequireVehicles;

// Check the flag (two common ways)
bool requiresA = flags.HasFlag(TaxiStandFlags.RequireVehicles);
bool requiresB = (flags & TaxiStandFlags.RequireVehicles) != 0;

// Set an additional flag (if more flags are added later)
flags |= TaxiStandFlags.RequireVehicles;

// Clear the flag
flags &= ~TaxiStandFlags.RequireVehicles;