Game.Prefabs.BridgeBuildStyle
Assembly:
Game
Namespace: Game.Prefabs
Type:
enum BridgeBuildStyle
Base:
System.Enum
Summary:
An enumeration that defines the available bridge construction styles used by the game's prefabs/systems when spawning or rendering bridge segments. It provides a small set of semantic build styles that influence which bridge visuals or placement rules are used (e.g., standard elevated bridges vs. quay-style waterfront bridges).
Fields
-
Elevated
Represents a standard elevated bridge style — typical bridge spanning above ground or terrain. -
Raised
Represents a raised bridge style, used when a bridge is built with a raised roadway/profile (different appearance or placement rules from Elevated). -
Quay
Represents a quay-type bridge or waterfront style, used for bridges adjacent to water quays or harbor-style edges.
Properties
- This enum does not define any properties. It is a simple value type enumerating the available bridge build styles.
Constructors
- Enums have an implicit default constructor and no user-declared constructors. There are no public constructors specific to this enum.
Methods
- This enum does not declare any instance methods. As with all enums, it implicitly supports the standard System.Enum methods (e.g., ToString(), HasFlag, etc.).
Usage Example
using Game.Prefabs;
public void CreateBridge()
{
BridgeBuildStyle style = BridgeBuildStyle.Raised;
switch (style)
{
case BridgeBuildStyle.Elevated:
// Spawn or configure an elevated bridge prefab
break;
case BridgeBuildStyle.Raised:
// Spawn or configure a raised-style bridge prefab
break;
case BridgeBuildStyle.Quay:
// Spawn or configure a quay/waterfront-style bridge prefab
break;
}
}