Game.Vehicles.AircraftLaneFlags
Assembly:
Assembly-CSharp
Namespace:
Game.Vehicles
Type:
public enum AircraftLaneFlags : uint
Base:
System.Enum (underlying type: System.UInt32)
Summary:
Flags enum used by the vehicle/aircraft lane/pathing system to mark lane attributes and transient aircraft states (for example runway vs airway, approach/landing/taking-off states, parking, and various processing flags). The enum is decorated with the [Flags] attribute so values can be combined with bitwise operations.
Fields
-
EndOfPath = 1u
Marks the lane as the end of a path (final segment). -
EndReached = 2u
Indicates that the vehicle/aircraft has reached the end of the path. -
Connection = 4u
Marks the lane as a connection (used to indicate a connecting segment between lanes/nodes). -
TransformTarget = 8u
Used to denote a transform target for the lane (e.g., a special target point for movement/rotation). -
ParkingSpace = 0x10u
Marks the lane as a parking space (used for aircraft parking/stands). -
ResetSpeed = 0x20u
Flag to indicate speed should be reset at this lane (used by simulation logic). -
Obsolete = 0x40u
Mark the lane as obsolete/unused (reserved for removing or ignoring lanes). -
Reserved = 0x80u
Reserved flag for future use or internal purposes. -
SkipLane = 0x100u
Indicates the lane should be skipped by pathing/processing logic. -
Checked = 0x400u
Used to mark lanes that have been checked/processed during an algorithm pass. -
IgnoreBlocker = 0x2000u
Allows ignoring blockers when considering this lane (useful for special-case pathing). -
Runway = 0x10000u
Marks the lane as a runway segment (part of airport runway infrastructure). -
Airway = 0x20000u
Marks the lane as an airway (in-air routing segment). -
Approaching = 0x100000u
Transient state indicating an aircraft is approaching (toward landing or runway). -
Flying = 0x200000u
Transient state indicating the aircraft is currently flying. -
Landing = 0x400000u
Transient state indicating the aircraft is landing. -
TakingOff = 0x800000u
Transient state indicating the aircraft is taking off.
Properties
- This enum type has no properties. It is a simple bitmask-style enum; you read and modify it via bitwise operations on variables of type AircraftLaneFlags.
Constructors
- Enums do not define explicit constructors. The implicit default value is 0 (no flags set). You create values by casting from an integer/uint or by using the named enum members (optionally combined with bitwise operators).
Methods
- This enum defines no methods. Use standard bitwise operations to combine, set, clear, and test flags.
Usage Example
// Combine flags
AircraftLaneFlags flags = AircraftLaneFlags.Runway | AircraftLaneFlags.Approaching;
// Test flags
bool isRunway = (flags & AircraftLaneFlags.Runway) != 0;
bool isApproaching = (flags & AircraftLaneFlags.Approaching) != 0;
// Set a flag
flags |= AircraftLaneFlags.Checked;
// Clear a flag
flags &= ~AircraftLaneFlags.Approaching;
// Example: store/read from a uint field
uint raw = (uint)flags;
AircraftLaneFlags fromRaw = (AircraftLaneFlags)raw;