MCPcopy Create free account
hub / github.com/DFHack/dfhack / notifyCivzoneModified

Method notifyCivzoneModified

library/modules/Buildings.cpp:1463–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461}
1462
1463void Buildings::notifyCivzoneModified(df::building* bld)
1464{
1465 if (bld->getType() != building_type::Civzone)
1466 return;
1467
1468 //remove zone here needs to be the slow method
1469 remove_zone_from_all_buildings(bld);
1470 add_zone_to_all_buildings(bld);
1471}
1472
1473void Buildings::clearBuildings(color_ostream& out) {
1474 corner1.clear();

Callers

nothing calls this directly

Calls 3

getTypeMethod · 0.80

Tested by

no test coverage detected