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

Function removeStockpileLink

plugins/siege-engine.cpp:701–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static bool removeStockpileLink(df::building_siegeenginest *bld, df::building_stockpilest *pile)
702{
703 CHECK_NULL_POINTER(bld);
704 CHECK_NULL_POINTER(pile);
705
706 if (auto engine = find_engine(bld))
707 {
708 forgetStockpileLink(engine, pile->id);
709 return true;
710 }
711
712 return false;
713}
714
715static df::workshop_profile *saveWorkshopProfile(df::building_siegeenginest *bld)
716{

Callers

nothing calls this directly

Calls 2

find_engineFunction · 0.85
forgetStockpileLinkFunction · 0.85

Tested by

no test coverage detected