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

Function isLinkedToPile

plugins/siege-engine.cpp:668–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668static bool isLinkedToPile(df::building_siegeenginest *bld, df::building_stockpilest *pile)
669{
670 CHECK_NULL_POINTER(bld);
671 CHECK_NULL_POINTER(pile);
672
673 auto engine = find_engine(bld);
674
675 return engine && engine->stockpiles.count(pile->id);
676}
677
678static bool addStockpileLink(df::building_siegeenginest *bld, df::building_stockpilest *pile)
679{

Callers

nothing calls this directly

Calls 2

find_engineFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected