MCPcopy Create free account
hub / github.com/MCJack123/craftos2 / setConfigSettingInt

Function setConfigSettingInt

src/plugin.cpp:59–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58static void setConfigSetting(const std::string& name, const std::string& value) {config.pluginData[name] = value;}
59static void setConfigSettingInt(const std::string& name, int value) {config.pluginData[name] = std::to_string(value);}
60static void setConfigSettingBool(const std::string& name, bool value) {config.pluginData[name] = value ? "true" : "false";}
61static void registerConfigSetting(const std::string& name, int type, const std::function<int(const std::string&, void*)>& callback, void* userdata) {userConfig[name] = std::make_tuple(type, callback, userdata);}
62extern void setDistanceProvider(const std::function<double(const Computer *, const Computer *)>& func);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected