MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_save_site_data

Function command_result plugin_save_site_data

plugins/preserve-rooms.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246DFhackCExport command_result plugin_save_site_data (color_ostream &out) {
247 store_zone_assignments(last_known_assignments_bedroom, "bedroom");
248 store_zone_assignments(last_known_assignments_office, "office");
249 store_zone_assignments(last_known_assignments_dining, "dining");
250 store_zone_assignments(last_known_assignments_tomb, "tomb");
251 store_associations(pending_reassignment, "pending");
252 store_associations(reserved_zones, "reserved");
253 store_noble_map(noble_zones, "noble");
254
255 return CR_OK;
256}
257
258DFhackCExport command_result plugin_onupdate(color_ostream &out) {
259 if (!Core::getInstance().isMapLoaded() || !World::isFortressMode())

Callers

nothing calls this directly

Calls 3

store_zone_assignmentsFunction · 0.85
store_associationsFunction · 0.85
store_noble_mapFunction · 0.85

Tested by

no test coverage detected