Game.FireRescueRequestType
Assembly: Game (in-game assembly)
Namespace: Game.Simulation
Type: enum
Base: System.Enum (underlying type: byte)
Summary:
Represents the type of a fire/rescue request inside the simulation. The enum is stored as a single byte for compactness and is used by systems that dispatch emergency services or classify incoming incidents. Typical uses include routing responders, selecting specialized disaster responses, and serializing request data. When modding, treat the enum as a stable contract—changing underlying values or reordering members can break saves or interactions with other systems.
Fields
-
Fire
Represents a regular fire/rescue incident (e.g., building fire, vehicle fire). Systems use this value to route standard firefighting units and perform normal emergency handling. -
Disaster
Represents a large-scale or exceptional incident classified as a disaster. This value indicates that a broader or different response is required (multi-service coordination, special disaster recovery logic, etc.).
Properties
None
Enums do not expose custom properties here. Use the enum values directly. The type does inherit static members from System.Enum (ToString, HasFlag, etc.).
Constructors
None
Enums cannot declare instance constructors. Values are created by assignment or casting from the underlying byte.
Methods
None (instance methods not declared)
No custom methods are declared on this enum. Standard Enum methods (ToString, GetValues, etc.) are available.
Usage Example
using Game.Simulation;
// Create / assign
FireRescueRequestType reqType = FireRescueRequestType.Fire;
// Use in logic
switch (reqType)
{
case FireRescueRequestType.Fire:
// route standard fire trucks, apply normal handling
break;
case FireRescueRequestType.Disaster:
// trigger disaster-level response workflows
break;
}
// Compact storage / serialization
byte raw = (byte)reqType;
reqType = (FireRescueRequestType)raw;
Notes for modders: - Preserve the existing names and numeric values when possible. Adding or reordering members may break compatibility with save files or other mods. - Because the enum uses byte as its underlying type, it is appropriate for packed data structures or network messages where size matters.