Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 7b58f63

Browse files
committed
update the shit
1 parent 277faf0 commit 7b58f63

File tree

3 files changed

+51
-39
lines changed

3 files changed

+51
-39
lines changed

auxmos.dll

6 KB
Binary file not shown.

auxmos.pdb

72 KB
Binary file not shown.

code/__DEFINES/bindings.dm

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,7 @@
1414
/proc/byondapi_stack_trace(msg)
1515
CRASH(msg)
1616

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
5018
/datum/gas_mixture/proc/__auxtools_parse_gas_string(string)
5119
return call_ext(AUXMOS, "byond:parse_gas_string_ffi")(src, string)
5220

@@ -106,27 +74,27 @@
10674
/datum/gas_mixture/proc/scrub_into(into, ratio_v, gas_list)
10775
return call_ext(AUXMOS, "byond:scrub_into_hook_ffi")(src, into, ratio_v, gas_list)
10876

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.
11078
/datum/gas_mixture/proc/get_by_flag(flag_val)
11179
return call_ext(AUXMOS, "byond:get_by_flag_hook_ffi")(src, flag_val)
11280

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.
11482
/datum/gas_mixture/proc/__remove_by_flag(into, flag_val, amount_val)
11583
return call_ext(AUXMOS, "byond:remove_by_flag_hook_ffi")(src, into, flag_val, amount_val)
11684

117-
///Args: (coefficient). Divides all gases by this amount.
85+
/// Args: (coefficient). Divides all gases by this amount.
11886
/datum/gas_mixture/proc/divide(num_val)
11987
return call_ext(AUXMOS, "byond:divide_hook_ffi")(src, num_val)
12088

121-
///Args: (coefficient). Multiplies all gases by this amount.
89+
/// Args: (coefficient). Multiplies all gases by this amount.
12290
/datum/gas_mixture/proc/multiply(num_val)
12391
return call_ext(AUXMOS, "byond:multiply_hook_ffi")(src, num_val)
12492

125-
///Args: (amount). Subtracts the given amount from each gas.
93+
/// Args: (amount). Subtracts the given amount from each gas.
12694
/datum/gas_mixture/proc/subtract(num_val)
12795
return call_ext(AUXMOS, "byond:subtract_hook_ffi")(src, num_val)
12896

129-
///Args: (amount). Adds the given amount to each gas.
97+
/// Args: (amount). Adds the given amount to each gas.
13098
/datum/gas_mixture/proc/add(num_val)
13199
return call_ext(AUXMOS, "byond:add_hook_ffi")(src, num_val)
132100

@@ -231,3 +199,47 @@
231199
/proc/process_atmos_callbacks(remaining)
232200
return call_ext(AUXMOS, "byond:atmos_callback_handle_ffi")(remaining)
233201

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

Comments
 (0)