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

Function is_connector

plugins/dig-now.cpp:574–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574static bool is_connector(MapExtras::MapCache &map, const DFCoord &pos) {
575 df::building *bld = Buildings::findAtTile(pos);
576
577 return bld &&
578 (bld->getType() == df::building_type::Door ||
579 bld->getType() == df::building_type::Floodgate);
580}
581
582static bool is_smooth_wall_or_connector(MapExtras::MapCache &map,
583 const DFCoord &pos) {

Callers 2

adjust_smooth_wall_dirFunction · 0.85

Calls 1

getTypeMethod · 0.80

Tested by

no test coverage detected