Skip to content

Game.TaxiwayFlags

Assembly:
Assembly-CSharp (game runtime assembly where most game types live)

Namespace: Game.Prefabs

Type:
public enum TaxiwayFlags

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

Summary:
A bitmask enum used to mark or classify taxiway-related features. The enum is decorated with the [Flags] attribute, so values can be combined with bitwise operations to represent multiple properties at once. Typical uses include tagging a taxiway as a runway surface or as part of airspace logic.


Fields

  • Runway = 1
    Marks the taxiway as (or associated with) a runway. When this flag is set, systems that treat runway surfaces specially (routing, rendering, or behavior) can detect that state.

  • Airspace = 2
    Marks the taxiway as part of airspace-related logic. This can be used by flight/air traffic systems to include the taxiway in airspace checks or behaviors.

Properties

  • None.
    This enum defines flag values only and does not declare properties.

Constructors

  • None (enum types do not declare constructors).
    As with all enums, values are implicitly convertible from the underlying integral type (int). The default value (0) represents "no flags set".

Methods

  • None declared on this enum.
    Use standard System.Enum and bitwise operations to work with values. Common helpers include Enum.HasFlag, bitwise & and |, and comparisons against explicit values.

Usage Example

// Combine flags
TaxiwayFlags flags = TaxiwayFlags.Runway | TaxiwayFlags.Airspace;

// Check using HasFlag
if (flags.HasFlag(TaxiwayFlags.Runway))
{
    // handle runway-specific behavior
}

// Check using bitwise operator (faster in performance-critical code)
if ((flags & TaxiwayFlags.Airspace) != 0)
{
    // handle airspace-specific behavior
}

// Remove a flag
flags &= ~TaxiwayFlags.Airspace;