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

Method setArmokTools

library/Core.cpp:2022–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2020}
2021
2022void Core::setArmokTools(const std::vector<std::string> &tool_names) {
2023 std::lock_guard<std::mutex> lock(armok_mutex);
2024 armok_tools.clear();
2025 armok_tools.insert(tool_names.begin(), tool_names.end());
2026}
2027
2028bool Core::isArmokTool(const std::string& tool) {
2029 std::lock_guard<std::mutex> lock(armok_mutex);

Callers 1

internal_setArmokToolsFunction · 0.80

Calls 4

clearMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected