Game.UI.InGame.CitizenWorkplaceKey
Assembly: Assembly-CSharp (game assembly containing runtime types)
Namespace: Game.UI.InGame
Type: public enum CitizenWorkplaceKey
Base: System.Enum
Summary:
Enumeration used by the UI/game code to identify the type of workplace associated with a citizen. Distinguishes between a workplace that is a specific building and one that represents a company/organization.
Fields
-
Building
Represents a workplace that is tied to a specific building instance (e.g., a factory building, office building). -
Company
Represents a workplace that is associated with a company/organization rather than a single building (e.g., employment across multiple sites managed by the same company).
Properties
- None (enum has no instance properties).
Constructors
- None (enum uses the implicit default constructor).
Default underlying integer values:Building = 0
,Company = 1
.
Methods
- Inherits standard System.Enum methods such as:
ToString()
— returns the name of the enum value.GetValues(Type)
/GetNames(Type)
— retrieve available enum values/names.HasFlag(Enum)
— (when used with flagged enums; not applicable here but available from Enum utilities).
Usage Example
using Game.UI.InGame;
public class WorkplaceDisplay
{
public void ShowWorkplaceInfo(CitizenWorkplaceKey key)
{
switch (key)
{
case CitizenWorkplaceKey.Building:
// Show building-specific workplace info
break;
case CitizenWorkplaceKey.Company:
// Show company-wide workplace info
break;
}
}
}