Skip to content

Game.Prefabs.PolicyCategory

Assembly: Assembly-CSharp
Namespace: Game.Prefabs

Type: enum (public)

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

Summary:
Defines the high-level categories used to group and identify different policy sets or UI sections in the game (e.g., city planning, budget, traffic). The enum provides semantic names for these categories so code and UI can switch behavior or display based on the selected policy category.


Fields

  • None
    Represents no category / default value (underlying value 0). Useful as a sentinel or when no policy category applies.

  • CityPlanning
    Category for city planning related policies and settings (zoning, planning tools, etc.).

  • Budget
    Category for budget-related policies or UI (taxes, funding sliders, budget allocations).

  • Traffic
    Category for traffic and transportation policies (road rules, vehicle restrictions, lane management).

  • Culture
    Category for culture-related policies (parks, attractions, cultural buildings and events).

  • Services
    Category for city services (utilities, emergency services, maintenance).

Properties

  • None. Enums do not define instance properties.

Constructors

  • None. Enums use the implicit default constructor and have integer-backed named values.

Methods

  • None. Enum-specific methods are inherited from System.Enum/System.ValueType/System.Object (e.g., ToString, HasFlag, etc.).

Usage Example

using Game.Prefabs;

public class PolicyManager
{
    public PolicyCategory CurrentCategory { get; private set; } = PolicyCategory.None;

    public void SetCategory(PolicyCategory category)
    {
        CurrentCategory = category;
        switch (category)
        {
            case PolicyCategory.CityPlanning:
                // open planning UI
                break;
            case PolicyCategory.Budget:
                // show budget panel
                break;
            case PolicyCategory.Traffic:
                // apply traffic rules
                break;
            case PolicyCategory.Culture:
                // adjust culture-related settings
                break;
            case PolicyCategory.Services:
                // manage service deployments
                break;
            default:
                // no category selected
                break;
        }
    }
}