Manager responsible for fetching, caching, and updating active EmergencyCall structures.
Signature:
declare class EmergencyCallManager#Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates an instance of EmergencyCallManager. |
#Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Collection<number, EmergencyCall> |
Collection cache of active emergency calls, keyed by call number. |
#Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Adds a call to the emergency call cache with data from the webhook. Emits emergencyCallAdd events. | ||
|
Fetches all active emergency calls from the game server. Updates the emergency call cache. | ||
|
Removes a call from the emergency call cache with data from the webhook. Emits emergencyCallRemove events. | ||
|
Re-synchronizes the cache with the raw emergency calls payload. Emits emergencyCallAdd, emergencyCallRemove, and emergencyCallUpdate events. |