ChairmanEvent

Overview

Data model for gameplay events, including their presentation (title, description, images), nature/personality filters, minimum severity, and up to three player responses with multiple effects each. Supports localization via I2 (computed keys per event index) and optional constraints on required infrastructure (Distribution Spot/Routes).

Enums

  • Parameter
    • NONE, MONEY, LOYALTY, CONTROL, SEVERITY_POLICE, SEVERITY_CARTEL, AFFINITY_MOBSTER, AFFINITY_SCHEMER, AFFINITY_SUBTERFUGE, PERSONALITY_MOBSTER, PERSONALITY_SCHEMER, PERSONALITY_SUBTERFUGE, DESTROY_ROUTE, DESTROY_LAB, PRODUCTION, DEMAND, PASSIVE_EFFECT
  • EventNaturePOLICE, CARTEL, GENERAL
  • EventPersonalityANY, CAPITALIST, SCHEMER, SUBTERFUGE

Serialized Fields

  • string event_title, string event_desc
  • string img_path, string background_path
  • EventNature nature (default GENERAL)
  • EventPersonality personality (default ANY)
  • float minSeverity — threshold used during selection
  • List<EventResponse> responses — exactly 3 in standard content

Runtime Fields / Properties

  • Region TargetRegion { get; set; } — region the event applies to
  • string TextAssetPath { get; set; } — backing asset path
  • string BaseLocID"EVE_" + EventManager.GetEventIndex(this).ToString("D3")

Helper Methods

  • bool RequiresLab()true if any response includes DESTROY_LAB or PRODUCTION (requires Distribution Spot)
  • bool RequiresRoute()true if any response includes DESTROY_ROUTE
  • string GetLocalizedTitle() — I2 key: EVE_TITLE_###
  • string GetLocalizedDesc() — I2 key: EVE_DESC_###
  • string GetLocalizedResponseDesc(int i) — I2 key: EVE_OP{i}_###

IsChained() and IsDated() are virtual and return false here; derived types (e.g., chained/dated events) override them.

Nested Types

  • EventResponse
    • string response_desc
    • List<ResponseEffect> effects
  • ResponseEffect
    • Parameter parameter
    • float value