Class Cartel
Provides access to Cartel status and state information. Wraps the game's Cartel singleton to provide a modder-friendly API.
public sealed class Cartel
- Inheritance
-
Cartel
- Inherited Members
- Extension Methods
Properties
GoonPool
Gets the goon manager for spawning and controlling cartel goons. Returns null if the goon pool is not available.
public GoonManager? GoonPool { get; }
Property Value
HoursSinceStatusChange
The number of hours since the Cartel status last changed.
public int HoursSinceStatusChange { get; }
Property Value
Influence
Gets the cartel influence manager for regional influence tracking. Returns null if the influence system is not available.
public CartelInfluence? Influence { get; }
Property Value
Instance
Gets the current Cartel instance, or null if not available.
public static Cartel? Instance { get; }
Property Value
Status
The current status of the Cartel.
public CartelStatus Status { get; }
Property Value
Methods
SetStatus(CartelStatus, bool)
Sets the cartel status. This is a server RPC that will sync to all clients.
public void SetStatus(CartelStatus status, bool resetTimer = true)
Parameters
statusCartelStatusThe new cartel status.
resetTimerboolWhether to reset the hours since status change timer.
Events
OnStatusChange
Event fired when the Cartel status changes. Provides the old status and new status as parameters.
public event Action<CartelStatus, CartelStatus> OnStatusChange