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

Function isPlannableBuilding

plugins/buildingplan/buildingplan.cpp:615–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615static bool isPlannableBuilding(color_ostream &out, df::building_type type, int16_t subtype, int32_t custom) {
616 DEBUG(control,out).print("entering isPlannableBuilding\n");
617 return get_num_filters(out, BuildingTypeKey(type, subtype, custom)) >= 1;
618}
619
620static bool isPlannedBuilding(color_ostream &out, df::building *bld) {
621 TRACE(control,out).print("entering isPlannedBuilding\n");

Callers 1

addPlannedBuildingFunction · 0.85

Calls 3

get_num_filtersFunction · 0.85
BuildingTypeKeyClass · 0.85
printMethod · 0.45

Tested by

no test coverage detected