Skip to content

Game.Buildings.BuildingModifierType

Assembly: Assembly-CSharp
Namespace: Game.Buildings

Type: public enum

Base: System.Enum (underlying type: System.Int32)

Summary: Represents the kinds of modifiers that can be applied to buildings. Currently this enum contains a single member, ParkingFee, used to identify a modifier that affects parking fee-related behavior for a building. Mods can read this enum to detect modifier types and may use it when serializing or applying building modifiers via game APIs or custom systems.


Fields

  • ParkingFee Represents a modifier that affects a building's parking fee. This is the only defined enum member in the current version and has the underlying integer value 0. Typically used to indicate that the modifier's purpose is to alter parking fee behavior or values for a building.

Properties

  • (None) This enum does not define properties. It inherits standard enum behaviour from System.Enum.

Constructors

  • (None - implicit) Enums are value types and do not expose explicit constructors. Instances are created by assigning one of the defined enum members or by casting from the underlying integral type.

Methods

  • (No custom methods) This enum does not declare methods. It inherits standard System.Enum methods such as ToString(), HasFlag(), GetValues(), and static parsing helpers (Enum.Parse, Enum.TryParse) which can be used to convert or inspect values.

Usage Example

// Assigning the enum
Game.Buildings.BuildingModifierType modifier = Game.Buildings.BuildingModifierType.ParkingFee;

// Checking the modifier
if (modifier == Game.Buildings.BuildingModifierType.ParkingFee)
{
    // Apply parking fee-related logic here
}

// Casting to/from the underlying int
int intValue = (int)Game.Buildings.BuildingModifierType.ParkingFee; // 0
Game.Buildings.BuildingModifierType fromInt = (Game.Buildings.BuildingModifierType)intValue;