mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-21 19:57:07 +01:00
modular map loader
yep
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/datum/unit_test/modular_map_loader
|
||||
|
||||
/datum/unit_test/modular_map_loader/Run()
|
||||
for (var/obj/modular_map_root/map_root_type as anything in subtypesof(/obj/modular_map_root))
|
||||
var/config_file = initial(map_root_type.config_file)
|
||||
if (!fexists(config_file))
|
||||
Fail("[map_root_type] points to a config file which does not exist!")
|
||||
continue
|
||||
if (rustg_read_toml_file(config_file) == null)
|
||||
Fail("[map_root_type] points to a config file which is invalid!")
|
||||
Reference in New Issue
Block a user