|
14 | 14 | /proc/byondapi_stack_trace(msg) |
15 | 15 | CRASH(msg) |
16 | 16 |
|
17 | | -/datum/controller/subsystem/air/proc/process_excited_groups_auxtools(remaining) |
18 | | - return call_ext(AUXMOS, "byond:groups_hook_ffi")(src, remaining) |
19 | | - |
20 | | -/proc/finalize_gas_refs() |
21 | | - return call_ext(AUXMOS, "byond:finalize_gas_refs_ffi")() |
22 | | - |
23 | | -/datum/controller/subsystem/air/proc/auxtools_update_reactions() |
24 | | - return call_ext(AUXMOS, "byond:update_reactions_ffi")() |
25 | | - |
26 | | -/proc/auxtools_atmos_init(gas_data) |
27 | | - return call_ext(AUXMOS, "byond:hook_init_ffi")(gas_data) |
28 | | - |
29 | | -/proc/_auxtools_register_gas(gas) |
30 | | - return call_ext(AUXMOS, "byond:hook_register_gas_ffi")(gas) |
31 | | - |
32 | | -/turf/proc/__update_auxtools_turf_adjacency_info() |
33 | | - return call_ext(AUXMOS, "byond:hook_infos_ffi")(src) |
34 | | - |
35 | | -/turf/proc/update_air_ref(flag) |
36 | | - return call_ext(AUXMOS, "byond:hook_register_turf_ffi")(src, flag) |
37 | | - |
38 | | -/datum/controller/subsystem/air/proc/process_turfs_auxtools(remaining) |
39 | | - return call_ext(AUXMOS, "byond:process_turf_hook_ffi")(src, remaining) |
40 | | - |
41 | | -/datum/controller/subsystem/air/proc/finish_turf_processing_auxtools(time_remaining) |
42 | | - return call_ext(AUXMOS, "byond:finish_process_turfs_ffi")(time_remaining) |
43 | | - |
44 | | -/datum/controller/subsystem/air/proc/thread_running() |
45 | | - return call_ext(AUXMOS, "byond:thread_running_hook_ffi")() |
46 | | - |
47 | | -/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools(remaining) |
48 | | - return call_ext(AUXMOS, "byond:equalize_hook_ffi")(src, remaining) |
49 | | - |
| 17 | +/// Returns: true. Parses gas strings like "o2=2500;plasma=5000;TEMP=370" and turns src mixes into the parsed gas mixture, invalid patterns will be ignored |
50 | 18 | /datum/gas_mixture/proc/__auxtools_parse_gas_string(string) |
51 | 19 | return call_ext(AUXMOS, "byond:parse_gas_string_ffi")(src, string) |
52 | 20 |
|
|
106 | 74 | /datum/gas_mixture/proc/scrub_into(into, ratio_v, gas_list) |
107 | 75 | return call_ext(AUXMOS, "byond:scrub_into_hook_ffi")(src, into, ratio_v, gas_list) |
108 | 76 |
|
109 | | -///Args: (flag). As get_gases(), but only returns gases with the given flag. |
| 77 | +/// Args: (flag). As get_gases(), but only returns gases with the given flag. |
110 | 78 | /datum/gas_mixture/proc/get_by_flag(flag_val) |
111 | 79 | return call_ext(AUXMOS, "byond:get_by_flag_hook_ffi")(src, flag_val) |
112 | 80 |
|
113 | | -///Args: (mixture, flag, amount). Takes `amount` from src that have the given `flag` and puts them into the given `mixture`. Returns: 0 if gas didn't have any with that flag, 1 if it did. |
| 81 | +/// Args: (mixture, flag, amount). Takes `amount` from src that have the given `flag` and puts them into the given `mixture`. Returns: 0 if gas didn't have any with that flag, 1 if it did. |
114 | 82 | /datum/gas_mixture/proc/__remove_by_flag(into, flag_val, amount_val) |
115 | 83 | return call_ext(AUXMOS, "byond:remove_by_flag_hook_ffi")(src, into, flag_val, amount_val) |
116 | 84 |
|
117 | | -///Args: (coefficient). Divides all gases by this amount. |
| 85 | +/// Args: (coefficient). Divides all gases by this amount. |
118 | 86 | /datum/gas_mixture/proc/divide(num_val) |
119 | 87 | return call_ext(AUXMOS, "byond:divide_hook_ffi")(src, num_val) |
120 | 88 |
|
121 | | -///Args: (coefficient). Multiplies all gases by this amount. |
| 89 | +/// Args: (coefficient). Multiplies all gases by this amount. |
122 | 90 | /datum/gas_mixture/proc/multiply(num_val) |
123 | 91 | return call_ext(AUXMOS, "byond:multiply_hook_ffi")(src, num_val) |
124 | 92 |
|
125 | | -///Args: (amount). Subtracts the given amount from each gas. |
| 93 | +/// Args: (amount). Subtracts the given amount from each gas. |
126 | 94 | /datum/gas_mixture/proc/subtract(num_val) |
127 | 95 | return call_ext(AUXMOS, "byond:subtract_hook_ffi")(src, num_val) |
128 | 96 |
|
129 | | -///Args: (amount). Adds the given amount to each gas. |
| 97 | +/// Args: (amount). Adds the given amount to each gas. |
130 | 98 | /datum/gas_mixture/proc/add(num_val) |
131 | 99 | return call_ext(AUXMOS, "byond:add_hook_ffi")(src, num_val) |
132 | 100 |
|
|
231 | 199 | /proc/process_atmos_callbacks(remaining) |
232 | 200 | return call_ext(AUXMOS, "byond:atmos_callback_handle_ffi")(remaining) |
233 | 201 |
|
| 202 | +/// Updates adjacency infos for turfs, only use this in immediateupdateturfs. |
| 203 | +/turf/proc/__update_auxtools_turf_adjacency_info() |
| 204 | + return call_ext(AUXMOS, "byond:hook_infos_ffi")(src) |
| 205 | + |
| 206 | +/// Returns: null. Updates turf air infos, whether the turf is closed, is space or a regular turf, or even a planet turf is decided here. |
| 207 | +/turf/proc/update_air_ref(flag) |
| 208 | + return call_ext(AUXMOS, "byond:hook_register_turf_ffi")(src, flag) |
| 209 | + |
| 210 | +/// Returns: If this cycle is interrupted by overtiming or not. Starts a katmos equalize cycle, does nothing if process_turfs isn't ran. |
| 211 | +/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools(remaining) |
| 212 | + return call_ext(AUXMOS, "byond:equalize_hook_ffi")(src, remaining) |
| 213 | + |
| 214 | +/// Returns: If this cycle is interrupted by overtiming or not. Starts a processing turfs cycle. |
| 215 | +/datum/controller/subsystem/air/proc/process_turfs_auxtools(remaining) |
| 216 | + return call_ext(AUXMOS, "byond:process_turf_hook_ffi")(src, remaining) |
| 217 | + |
| 218 | +/// Returns: If this cycle is interrupted by overtiming or not. Calls all outstanding callbacks created by other processes, usually ones that can't run on other threads and only the main thread. |
| 219 | +/datum/controller/subsystem/air/proc/finish_turf_processing_auxtools(time_remaining) |
| 220 | + return call_ext(AUXMOS, "byond:finish_process_turfs_ffi")(time_remaining) |
| 221 | + |
| 222 | +/// Returns: If a processing thread is running or not. |
| 223 | +/datum/controller/subsystem/air/proc/thread_running() |
| 224 | + return call_ext(AUXMOS, "byond:thread_running_hook_ffi")() |
| 225 | + |
| 226 | +/// Returns: If this cycle is interrupted by overtiming or not. Starts a processing excited groups cycle, does nothing if process_turfs isn't ran. |
| 227 | +/datum/controller/subsystem/air/proc/process_excited_groups_auxtools(remaining) |
| 228 | + return call_ext(AUXMOS, "byond:groups_hook_ffi")(src, remaining) |
| 229 | + |
| 230 | +/// For updating reagent gas fire products, do not use for now. |
| 231 | +/proc/finalize_gas_refs() |
| 232 | + return call_ext(AUXMOS, "byond:finalize_gas_refs_ffi")() |
| 233 | + |
| 234 | +/// For updating reaction informations for auxmos, only call this when it is changed. |
| 235 | +/datum/controller/subsystem/air/proc/auxtools_update_reactions() |
| 236 | + return call_ext(AUXMOS, "byond:update_reactions_ffi")() |
| 237 | + |
| 238 | +/// Registers gases, and get reaction infos for auxmos, only call when ssair is initing. |
| 239 | +/proc/auxtools_atmos_init(gas_data) |
| 240 | + return call_ext(AUXMOS, "byond:hook_init_ffi")(gas_data) |
| 241 | + |
| 242 | +/// For registering gases, do not touch this. |
| 243 | +/proc/_auxtools_register_gas(gas) |
| 244 | + return call_ext(AUXMOS, "byond:hook_register_gas_ffi")(gas) |
| 245 | + |
0 commit comments