/datum/antagonist_panel_data
The global singleton datum responsible for generating and providing data to individual instances of antagonist panels. Such a datum is necessary due to the relatively large amount of antagonist data that is required to be processed with each update of individual antagonist panels; tab data may be collated once every update then stored in a cache in order to be fetched by antagonist panels.
Vars | |
antagonist_panel_tab_names | A list of tab names and their respective tab index. |
---|---|
antagonist_panel_tabs | An associative list of tab indexes and their repective tab instances. |
ui_data_cache | An associative list of tab indexes and their repective cached tab data. |
Procs | |
generate_mortality_rates | Returns both crew and antagonist mortality rates. |
get_antagonist_panel_tabs | Populates antagonist_panel_tabs and antagonist_panel_tab_names with the necessary antagonist tab types and names. |
request_ui_data | Returns the UI data for a specified antagonist panel tab, either fetching it from the cache or regenerating it depending on a cooldown. |
Var Details
antagonist_panel_tab_names
A list of tab names and their respective tab index.
antagonist_panel_tabs
An associative list of tab indexes and their repective tab instances.
ui_data_cache
An associative list of tab indexes and their repective cached tab data.
Proc Details
generate_mortality_rates
Returns both crew and antagonist mortality rates.
get_antagonist_panel_tabs
Populates antagonist_panel_tabs
and antagonist_panel_tab_names
with the necessary antagonist tab types and names.
request_ui_data
Returns the UI data for a specified antagonist panel tab, either fetching it from the cache or regenerating it depending on a cooldown.