public void RemoveBuilding(IBuilding building) { var tile = building.tile; BB.Assert(tile.hasBuilding); BB.Assert(building.tile.building == building); bool passable = tile.passable; var bounds = building.bounds; building.CancelAllJobs(); map.RemoveBuilding(tile); NotifyBuildingRemoved(building); RerouteMinions(bounds, passable, tile.passable); }