mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Automapper - IMPORTANT, READ ME [MDB IGNORE] (#14679)
* wew * Update area_spawn_subsystem.dm * Update area_spawn_subsystem.dm * Update area_spawn_entries.dm * wew * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update summon_beacon.dm * yeees * Update area_spawn_entries.dm * qwqw * e * Update area_spawn_entries.dm * Update area_spawn_entries.dm * yes * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update area_spawn_entries.dm * automapper * mmkay * wew * science post * Update DeltaStation2_skyrat.dmm * fc * starting on delta * Update metastation_science_post.dmm * better loading system, metastation, delta, better file system * unit tests, bugfixes, multiz support * Update automapper.dm * Update _compile_options.dm * Kilo and tramstation * wew * Update area_spawn_entries.dm * Update automapper_config.toml * Update automapper_subsystem.dm * Update Skyrat_Map_Reset.dmm * remove redundant maps * Update _basemap.dm * wew * Update automap_template.dm * guard outposts no need * wew * NTR offices * e * Update area_spawn_entries.dm * Update area_spawn_entries.dm * Update icebox_ntrep_office.dmm * 0 * iucebox arrivals fix * Update area_spawn_entries.dm * Update automap_template.dm * Update readme.md
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
|
||||
// SKYRAT EDIT START
|
||||
#include "~skyrat/opposing_force.dm"
|
||||
#include "~skyrat/automapper.dm"
|
||||
//SKYRAT EDIT END
|
||||
#include "achievements.dm"
|
||||
#include "anchored_mobs.dm"
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/// Checks that all automapper TOML entries actually link to a map and that the config exists.
|
||||
/datum/unit_test/automapper
|
||||
var/config_path = "_maps/skyrat/automapper/automapper_config.toml"
|
||||
|
||||
/datum/unit_test/automapper/Run()
|
||||
var/test_config = rustg_read_toml_file(config_path)
|
||||
|
||||
if(!test_config)
|
||||
TEST_FAIL("Automapper could not read/find TOML config [config_path]!")
|
||||
return
|
||||
|
||||
for(var/template in test_config["templates"])
|
||||
var/selected_template = test_config["templates"][template]
|
||||
|
||||
for(var/map in selected_template["map_files"])
|
||||
var/map_file = selected_template["directory"] + selected_template["map_files"][map]
|
||||
TEST_ASSERT(fexists(map_file), "[template] could not find map file [map_file]!") // Testing for map existence
|
||||
|
||||
for(var/template_two in test_config["templates"]) // Testing for duplicate entries
|
||||
if(template_two == template)
|
||||
continue
|
||||
var/selected_template_two = test_config["templates"][template_two]
|
||||
|
||||
TEST_ASSERT_NOTEQUAL(selected_template["coordinates"], selected_template_two["coordinates"], "Automap template [template] had the same coords as [template_two]!")
|
||||
TEST_ASSERT_NOTEQUAL(selected_template["map_files"], selected_template_two["map_files"], "Automap template [template] had the same map files as [template_two]!")
|
||||
Reference in New Issue
Block a user