| 771 | } |
| 772 | |
| 773 | static 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 | |
| 788 | static 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), |
no outgoing calls
no test coverage detected