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

Function forgetStockpileLink

plugins/siege-engine.cpp:623–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623static void forgetStockpileLink(EngineInfo *engine, int pile_id)
624{
625 engine->stockpiles.erase(pile_id);
626
627 auto key = stl_sprintf("siege-engine/stockpiles/%d/%d", engine->id, pile_id);
628 World::DeletePersistentData(World::GetPersistentData(key));
629}
630
631static void update_stockpile_links(EngineInfo *engine)
632{

Callers 2

update_stockpile_linksFunction · 0.85
removeStockpileLinkFunction · 0.85

Calls 2

stl_sprintfFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected