Files
Bubberstation/code/modules/unit_tests/modular_map_loader.dm
Thunder12345 9dc96a68f5 Adds Modular Ruins (#64077)
Adds a new system to allow mappers to randomly load modular map segments.

For implementation details and a tutorial check the included README.md.
2022-01-16 15:50:40 -08:00

11 lines
461 B
Plaintext

/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!")