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

Function remove_stockpile_config

plugins/logistics.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static void remove_stockpile_config(color_ostream& out, int stockpile_number) {
90 if (!watched_stockpiles.count(stockpile_number))
91 return;
92 DEBUG(control, out).print("removing persistent key for stockpile {}\n", stockpile_number);
93 World::DeletePersistentData(watched_stockpiles[stockpile_number]);
94 watched_stockpiles.erase(stockpile_number);
95}
96
97static const int32_t CYCLE_TICKS = 601;
98static int32_t cycle_timestamp = 0; // world->frame_counter at last cycle

Callers 2

Calls 3

countMethod · 0.45
printMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected