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
- EventNature —
POLICE, CARTEL, GENERAL - EventPersonality —
ANY, CAPITALIST, SCHEMER, SUBTERFUGE
Serialized Fields
string event_title,string event_descstring img_path,string background_pathEventNature nature(defaultGENERAL)EventPersonality personality(defaultANY)float minSeverity— threshold used during selectionList<EventResponse> responses— exactly 3 in standard content
Runtime Fields / Properties
Region TargetRegion { get; set; }— region the event applies tostring TextAssetPath { get; set; }— backing asset pathstring BaseLocID—"EVE_" + EventManager.GetEventIndex(this).ToString("D3")
Helper Methods
bool RequiresLab()—trueif any response includesDESTROY_LABorPRODUCTION(requires Distribution Spot)bool RequiresRoute()—trueif any response includesDESTROY_ROUTEstring GetLocalizedTitle()— I2 key:EVE_TITLE_###string GetLocalizedDesc()— I2 key:EVE_DESC_###string GetLocalizedResponseDesc(int i)— I2 key:EVE_OP{i}_###
IsChained()andIsDated()are virtual and returnfalsehere; derived types (e.g., chained/dated events) override them.
Nested Types
- EventResponse
string response_descList<ResponseEffect> effects
- ResponseEffect
Parameter parameterfloat value