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

Function isDesignatedHollow

plugins/tubefill.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24REQUIRE_GLOBAL(world);
25
26bool isDesignatedHollow(df::coord pos)
27{
28 for (size_t i = 0; i < world->event.deep_vein_hollows.size(); i++)
29 {
30 auto *vein = world->event.deep_vein_hollows[i];
31 for (size_t j = 0; j < vein->tiles.x.size(); j++)
32 if (pos == df::coord(vein->tiles.x[j], vein->tiles.y[j], vein->tiles.z[j]))
33 return true;
34 }
35 return false;
36}
37
38command_result tubefill(color_ostream &out, std::vector<std::string> & params);
39

Callers 1

tubefillFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected