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

Function get_subtype

plugins/buildingplan/buildingplan.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256static int16_t get_subtype(df::building *bld) {
257 if (!bld)
258 return -1;
259
260 int16_t subtype = bld->getSubtype();
261 if (bld->getType() == df::building_type::Construction &&
262 subtype >= df::construction_type::UpStair &&
263 subtype <= df::construction_type::UpDownStair)
264 subtype = df::construction_type::UpDownStair;
265 return subtype;
266}
267
268static bool is_suspendmanager_enabled(color_ostream &out) {
269 bool suspendmanager_enabled = false;

Callers 2

addPlannedBuildingFunction · 0.85

Calls 1

getTypeMethod · 0.80

Tested by

no test coverage detected