/datum/tacmap/drawing
Vars | |
current_svg | current svg |
---|---|
last_update_time | The last time the map has been flattened - used as a key to trick react into updating the canvas |
new_current_map | current flattend map |
old_map | previous flattened map |
tacmap_ready_time | A temporary lock out time before we can open the new canvas tab to allow the tacmap time to fire |
toolbar_color_selection | color selection for the tactical map canvas, defaults to black. |
updated_canvas | boolean value to keep track if the canvas has been updated or not, the value is used in tgui state. |
wiki_map_fallback | A url that will point to the wiki map for the current map as a fall back image |
Procs | |
distribute_current_map_png | Flattens the current map and then distributes it for the specified faction as an unannounced map. |
on_tacmap_fire | Callback when timer indicates the tacmap is flattenable now |
store_current_svg_coords | Globally stores svg coords for a given faction. |
Var Details
current_svg
current svg
last_update_time
The last time the map has been flattened - used as a key to trick react into updating the canvas
new_current_map
current flattend map
old_map
previous flattened map
tacmap_ready_time
A temporary lock out time before we can open the new canvas tab to allow the tacmap time to fire
toolbar_color_selection
color selection for the tactical map canvas, defaults to black.
updated_canvas
boolean value to keep track if the canvas has been updated or not, the value is used in tgui state.
wiki_map_fallback
A url that will point to the wiki map for the current map as a fall back image
Proc Details
distribute_current_map_png
Flattens the current map and then distributes it for the specified faction as an unannounced map.
Arguments:
- faction: Which faction to distribute the map to: FACTION_MARINE or XENO_HIVE_NORMAL Return:
- Returns a boolean value, TRUE if the operation was successful, FALSE if it was not (on cooldown generally).
on_tacmap_fire
Callback when timer indicates the tacmap is flattenable now
store_current_svg_coords
Globally stores svg coords for a given faction.
Arguments:
- faction: which faction to save the data for: FACTION_MARINE or XENO_HIVE_NORMAL
- svg_coords: an array of coordinates corresponding to an svg.
- ckey: the ckey of the user who submitted this