MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / addButtonDef

Method addButtonDef

src/OD2/Common/ButtonDefManager.h:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void addButtonDef(const Abyss::UI::ButtonDef &def) {
33 if (buttonDefs.contains(def.name))
34 throw std::runtime_error("ButtonDef already exists");
35
36 buttonDefs.emplace(def.name, def);
37 }
38
39 void removeButtonDef(const std::string_view name) {
40 const auto it = buttonDefs.find(name);

Callers 1

loadButtonDefsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected