Skip to content

Game.Prefabs.CrimeType

Assembly: Assembly-CSharp (in-game)
Namespace: Game.Prefabs

Type: enum

Base: System.Enum

Summary:
Enumeration of crime categories used by the game's crime/police systems and prefabs. Currently contains only a single value, Robbery. This enum may be extended in future updates or mods to include additional crime types (e.g., Vandalism, Assault) that the simulation can track or react to.


Fields

  • Robbery
    Represents a robbery crime type. Used to identify or categorize incidents, trigger police responses, or drive UI/tooltips related to crime occurrences.

Properties

  • None.
    (No enum-specific properties are defined.)

Constructors

  • None (implicit enum construction).
    (Enums do not define constructors in source; values are created by assigning the enum literal.)

Methods

  • None.
    (No methods are declared on this enum. Use equality, switch, or other language-level operations to work with values.)

Usage Example

// Assigning and checking the crime type
Game.Prefabs.CrimeType crime = Game.Prefabs.CrimeType.Robbery;

if (crime == Game.Prefabs.CrimeType.Robbery)
{
    // Handle robbery-specific logic: increment counters, dispatch police, show notification, etc.
    Debug.Log("Robbery reported at location X.");
}