Game.Routes.RouteFlags
Assembly:
Assembly-CSharp (typical game assembly for Cities: Skylines 2; actual assembly may vary)
Namespace:
Game.Routes
Type:
public enum
Base:
System.Enum (underlying type: System.Int32)
Summary:
A flags-style enumeration used to mark route state(s). The enum is marked with [Flags], so individual members can be combined with bitwise operations. Currently it defines a single flag indicating a route is complete. In practice, a value of 0 implicitly means "no flags set" (no special state).
Fields
Complete = 1
Indicates the route has been completed. Because the enum uses the [Flags] attribute, this value can be combined with other flag values (if additional flags are added later) using bitwise operations.
Properties
- None.
This is an enum type; it exposes no properties.
Constructors
- None.
Enums do not declare explicit constructors in user code.
Methods
- None declared.
Standard Enum methods (e.g., ToString()) are available from System.Enum / System.ValueType.
Usage Example
// Set a flag
RouteFlags flags = RouteFlags.Complete;
// Check if Complete is set
bool isComplete = (flags & RouteFlags.Complete) != 0;
// Combine flags (illustrative — only one flag exists now)
flags |= RouteFlags.Complete;
// Clear a flag
flags &= ~RouteFlags.Complete;
Remarks: - The [Flags] attribute makes the enum suitable for bitwise combination of values. With only Complete = 1 defined, the common pattern is to treat 0 as "None" (no flags set) and test using bitwise AND as shown above. - When reading or writing route state in game code, check the actual type/property that stores these flags (for example, a Route object might expose a RouteFlags field/property) to manipulate route status safely.