Skip to content

Game.UI.InGame.CitizenOccupationKey

Assembly:
(assembly not specified in source)

Namespace: Game.UI.InGame

Type: public enum

Base: System.Enum

Summary:
Represents the occupation/state category of a citizen as used in the in-game UI. Values indicate common occupation or status categories (e.g., Worker, Student, Retired) as well as special states like Criminal, Tourist, None and Unknown. This enum is typically used to decide which icon, tooltip or label to show for a citizen in UI elements (citizen info panels, lists, overlays).


Fields

  • Unemployed
    Represents a citizen without a job. Often used to display an "unemployed" icon or to filter citizens who are seeking work.

  • Worker
    Represents a working citizen (employed). Typically maps to the regular workforce icon or classification in UI displays.

  • Student
    Represents a citizen attending school or university. Used to show education-related icons or to identify students in lists.

  • Retired
    Represents a citizen who has retired. Used to show retirement-related UI indicators.

  • Criminal
    Represents a citizen flagged as a criminal (likely involved in non-violent crime). Used to display criminal status in UI or filter for policing systems.

  • Robber
    Represents a citizen flagged as a robber (likely involved in violent/robbery behavior). Used for more specific criminal UI distinctions.

  • Tourist
    Represents a visiting tourist (not a resident). Used to show tourist indicators and for logic differentiating visitors from residents.

  • None
    Represents no occupation/status assigned. Can be used as a neutral/default sentinel.

  • Unknown
    Represents an undefined or unrecognized occupation/status. Useful when data is missing or cannot be determined.

Properties

  • (none)
    This enum exposes no properties.

Constructors

  • (none)
    Enum types use implicit constructors; there are no explicit constructors defined.

Methods

  • (none)
    No methods are defined on this enum beyond the standard System.Enum members (ToString, HasFlag, etc.).

Usage Example

// Determine which icon to show for a citizen
CitizenOccupationKey occ = CitizenOccupationKey.Worker;

string GetOccupationIcon(CitizenOccupationKey key)
{
    switch (key)
    {
        case CitizenOccupationKey.Worker: return "icon_worker";
        case CitizenOccupationKey.Student: return "icon_student";
        case CitizenOccupationKey.Tourist: return "icon_tourist";
        case CitizenOccupationKey.Unemployed: return "icon_unemployed";
        case CitizenOccupationKey.Retired: return "icon_retired";
        case CitizenOccupationKey.Criminal: return "icon_criminal";
        case CitizenOccupationKey.Robber: return "icon_robber";
        case CitizenOccupationKey.None:
        case CitizenOccupationKey.Unknown:
        default: return "icon_default";
    }
}