Skip to content

Game.Prefabs.PillarType

Assembly: Assembly-CSharp
Namespace: Game.Prefabs

Type: enum

Base: System.Enum

Summary:
Enumeration representing the orientation/type of a pillar prefab used by the game. Useful when creating or inspecting pillar-related prefabs (e.g., supports, columns, decorative posts) to determine how they should be positioned, rendered, or connected to other objects. The enum includes a sentinel value for "None" with an explicit -1 value.


Fields

  • None = -1
    Represents an unspecified or no pillar type. Often used as a default or error/sentinel value.

  • Vertical
    Indicates a vertically oriented pillar (upright column).

  • Horizontal
    Indicates a horizontally oriented pillar (laid on its side, e.g., beam or girder).

  • Standalone
    Indicates a pillar that is standalone — not intended to connect to other structural elements in a directional way (decorative post, single support).

  • Base
    Indicates a base-type pillar element, typically used as a foundation or bottom section of a multi-part pillar.

Properties

  • (None)

Constructors

  • (None — enums have default underlying constructors)

Methods

  • (None — standard System.Enum methods apply, such as ToString(), HasFlag(), etc.)

Usage Example

using Game.Prefabs;

public void ConfigurePillar(PillarType type)
{
    switch (type)
    {
        case PillarType.None:
            // handle unspecified case
            break;
        case PillarType.Vertical:
            // setup vertical pillar orientation
            break;
        case PillarType.Horizontal:
            // setup horizontal pillar orientation
            break;
        case PillarType.Standalone:
            // place as an independent decorative post
            break;
        case PillarType.Base:
            // treat as a base/foundation element
            break;
    }
}

// Example: parsing from an int (be careful with invalid values)
int raw = -1;
PillarType pt = Enum.IsDefined(typeof(PillarType), raw) ? (PillarType)raw : PillarType.None;