Game.UI.InGame.CitizenKey
Assembly: Assembly-CSharp (in-game)
Namespace: Game.UI.InGame
Type: enum
Base: System.Enum
Summary:
Enumeration used by the in-game UI to classify the category of a person/citizen context shown in the UI. Commonly used to distinguish between regular citizens, commuters, and tourists when presenting information or filtering UI elements.
Fields
-
Citizen
Represents a regular resident/citizen. Underlying value: 0. -
Commuter
Represents a commuter (someone who travels into/out of the city for work). Underlying value: 1. -
Tourist
Represents a tourist/visitor. Underlying value: 2.
Properties
- This enum defines no properties.
Constructors
- Enums use an implicit constructor provided by the runtime; there are no explicit constructors defined in this type.
Methods
- This enum does not define custom methods. It inherits the standard System.Enum methods (ToString, HasFlag, GetValues, etc.) and System.Object methods (Equals, GetHashCode, etc.).
Usage Example
using Game.UI.InGame;
public void DisplayCitizenType(CitizenKey key)
{
switch (key)
{
case CitizenKey.Citizen:
// show regular citizen UI
break;
case CitizenKey.Commuter:
// show commuter-specific info
break;
case CitizenKey.Tourist:
// show tourist-specific info
break;
}
}
// Assigning
CitizenKey current = CitizenKey.Tourist;