Game.Prefabs.BridgeWaterFlow
Assembly: Assembly-CSharp
Namespace: Game.Prefabs
Type: enum
Base: System.Enum
Summary:
Specifies which side (if any) water is allowed or expected to flow under a bridge prefab. Typical values indicate that flow can be on either side (Any) or constrained to the Left or Right side relative to the bridge's local orientation. Used by bridge prefabs and related code to control placement, rendering, or simulation behavior that depends on the side of water flow.
Fields
-
Any
Represents no side-specific requirement — water flow may be on either side. Underlying value: 0. -
Left
Indicates water flow is on the left side of the bridge (relative to the bridge's forward/local orientation). Underlying value: 1. -
Right
Indicates water flow is on the right side of the bridge (relative to the bridge's forward/local orientation). Underlying value: 2.
Properties
- None (enum type — no custom properties declared)
Constructors
- None declared (enums have compiler-generated implicit constructors)
Methods
- No methods declared on this enum type. Standard System.Enum methods are available (e.g., ToString(), HasFlag(), CompareTo(), etc.).
Usage Example
using Game.Prefabs;
public class ExampleBridgeUsage
{
public void ConfigureBridge()
{
BridgeWaterFlow flow = BridgeWaterFlow.Left;
// Example usage: branching logic based on the enum value
switch (flow)
{
case BridgeWaterFlow.Any:
// allow water on either side
break;
case BridgeWaterFlow.Left:
// apply left-side flow setup
break;
case BridgeWaterFlow.Right:
// apply right-side flow setup
break;
}
}
}