Game.Prefabs.IconCategory
Assembly: Assembly-CSharp
Namespace: Game.Prefabs
Type: enum
Base: System.Enum
Summary:
Enumeration that defines categories for prefab/icons used by the game's UI and systems (for example icon overlays, filters, and map legend grouping). Each value corresponds to a thematic category such as services (Healthcare, Police), utilities (Water, Electricity), infrastructure (Road, Track, Transport), pollution types, and other map overlays (LandValue, Zoning). Modders can use this enum when assigning or checking icon categories for custom prefabs, UI elements, or map overlays.
Fields
-
Healthcare
Represents healthcare-related icons/overlays (hospitals, clinics, health services). -
FireRescue
Represents fire and rescue related icons/overlays (fire stations, firefighting). -
Police
Represents police/public safety related icons/overlays (police stations, law enforcement). -
Water
Represents water utility icons/overlays (water supply, pumps, pipes). -
Electricity
Represents electricity/power icons/overlays (power plants, lines). -
Garbage
Represents waste management icons/overlays (garbage collection, landfills). -
Road
Represents road infrastructure icons/overlays (streets, road networks). -
Track
Represents rail/track infrastructure icons/overlays (train tracks, trams). -
Transport
Represents public transport icons/overlays (bus stops, metro, transport routes). -
Disaster
Represents disaster-related icons/overlays (disaster response, hazard indicators). -
Zoning
Represents zoning icons/overlays (residential, commercial, industrial zoning map). -
AirPollution
Represents air pollution overlay/icons (air quality indicators). -
NoisePollution
Represents noise pollution overlay/icons (sound/noise indicators). -
GroundPollution
Represents ground/soil pollution overlay/icons (contamination indicators). -
LandValue
Represents land value overlay/icons (property value indicators).
Properties
- (None)
This enum defines named constant values and does not expose properties.
Constructors
- (Implicit enum constructor)
Enums use an implicit value-type constructor. There are no user-defined constructors.
Methods
- (None)
As a plain enum, there are no instance methods defined. Standard System.Enum static methods (e.g., ToString, Parse, HasFlag) are available.
Usage Example
// Assigning a category to a custom prefab/icon
public class MyCustomIcon
{
public Game.Prefabs.IconCategory Category { get; set; }
public MyCustomIcon()
{
Category = Game.Prefabs.IconCategory.Transport;
}
}
// Using the enum in a switch to determine overlay behavior
void HandleIcon(Game.Prefabs.IconCategory cat)
{
switch (cat)
{
case Game.Prefabs.IconCategory.Healthcare:
// show healthcare overlay logic
break;
case Game.Prefabs.IconCategory.Electricity:
// show electricity overlay logic
break;
case Game.Prefabs.IconCategory.LandValue:
// show land value overlay logic
break;
default:
// default handling
break;
}
}