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

Method isValid

plugins/uicommon.h:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 }
320
321 bool isValid()
322 {
323 if (!id)
324 return false;
325
326 auto found = df::building::find(id);
327 return found && found == sp && found->getType() == building_type::Stockpile;
328 }
329
330 int32_t getId()
331 {

Callers 15

df_liquids_executeFunction · 0.45
paintFunction · 0.45
df_changeveinFunction · 0.45
load_stateMethod · 0.45
autodump_mainFunction · 0.45
get_configFunction · 0.45
load_zone_assignmentsFunction · 0.45
load_associationsFunction · 0.45
load_noble_mapFunction · 0.45

Calls 2

getTypeMethod · 0.80
findFunction · 0.50

Tested by

no test coverage detected