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

Function remove_building_from_zone

library/modules/Buildings.cpp:259–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259static void remove_building_from_zone(df::building* bld, df::building_civzonest* zone) {
260 vector_erase_at(zone->contained_buildings, linear_index(zone->contained_buildings, bld));
261 vector_erase_at(bld->relations, linear_index(bld->relations, zone));
262}
263
264static void remove_zone_from_all_buildings(df::building* zone_as_building)
265{

Callers 2

deconstructMethod · 0.85

Calls 2

vector_erase_atFunction · 0.85
linear_indexFunction · 0.50

Tested by

no test coverage detected