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

Function emplace_bulk_burrow_config

plugins/autochop.cpp:773–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773static void emplace_bulk_burrow_config(lua_State *L, map<int32_t, map<string, int32_t>> &burrows, int id, bool chop = false,
774 bool clearcut = false, bool protect_brewable = false,
775 bool protect_edible = false, bool protect_cookable = false) {
776
777 map<string, int32_t> burrow_config;
778 burrow_config.emplace("id", id);
779 burrow_config.emplace("chop", chop);
780 burrow_config.emplace("clearcut", clearcut);
781 burrow_config.emplace("protect_brewable", protect_brewable);
782 burrow_config.emplace("protect_edible", protect_edible);
783 burrow_config.emplace("protect_cookable", protect_cookable);
784
785 burrows.emplace(id, burrow_config);
786}
787
788static void emplace_bulk_burrow_config(lua_State *L, map<int32_t, map<string, int32_t>> &burrows, PersistentDataItem &c) {
789 emplace_bulk_burrow_config(L, burrows, c.get_int(BURROW_CONFIG_ID),

Calls

no outgoing calls

Tested by

no test coverage detected