Game.Prefabs.SecondaryLaneDataFlags
Assembly: Game
Namespace: Game.Prefabs
Type: public enum (Flags)
Base: System.Enum (underlying type: System.Int32)
Summary:
SecondaryLaneDataFlags is a bitwise flags enum used by the game's prefab/lane layout systems to control how "secondary" lane data is processed. Each flag toggles behavior related to overlap checks, spacing, fitting to parking spaces, and track overlap handling when generating or validating lane geometry and placement. Flags can be combined using bitwise OR to enable multiple behaviors simultaneously.
Fields
-
SkipSafePedestrianOverlap = 1
Prevents checks or adjustments for overlaps with safe pedestrian areas. Use when the lane should ignore pedestrian-safe overlap constraints. -
SkipSafeCarOverlap = 2
Prevents checks or adjustments for overlaps with safe car areas (safe car overlaps). Use when lane placement should ignore safe-car overlap constraints. -
SkipUnsafeCarOverlap = 4
Skips overlap checks for unsafe car areas, i.e., overlaps that might normally be considered problematic but should be ignored for this lane. -
SkipMergeOverlap = 8
Skips overlap checks related to merging lanes. Useful when lane merge overlap validation should not be enforced. -
FitToParkingSpaces = 0x10
Adjusts lane geometry to fit available parking spaces (aligns or sizes lanes with parking layout constraints). -
SkipTrackOverlap = 0x20
Skips overlap checks with track assets (tram/rail track overlaps). Use when lane-track overlap validation should be disabled. -
EvenSpacing = 0x40
Requests even spacing for elements associated with the lane (for example, evenly spacing lane markings or repeated lane features).
Properties
- None (enum type — no instance properties)
Constructors
- None (enum has implicit constructors provided by .NET)
Methods
- None (enum — no instance methods beyond those inherited from System.Enum/Object)
Usage Example
// Combine flags
SecondaryLaneDataFlags flags = SecondaryLaneDataFlags.SkipSafePedestrianOverlap
| SecondaryLaneDataFlags.FitToParkingSpaces;
// Check for a flag
bool skipPed = (flags & SecondaryLaneDataFlags.SkipSafePedestrianOverlap) != 0;
// Add a flag
flags |= SecondaryLaneDataFlags.EvenSpacing;
// Remove a flag
flags &= ~SecondaryLaneDataFlags.SkipSafeCarOverlap;
// Example conditional behavior
if ((flags & SecondaryLaneDataFlags.FitToParkingSpaces) != 0)
{
// adjust lane geometry to align with parking spaces
}