MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getName

Function getName

src/Engine/src/Input/ShortcutManager.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 StringId getName(Shortcut id)
58 {
59 auto it = findShortcut(id);
60 if (it == std::end(_shortcuts) || it->id != id)
61 {
62 return 0xFFFF; // TODO: String-id null
63 }
64
65 return it->displayName;
66 }
67
68 const ShortcutMap& getList()
69 {

Callers 4

drawFunction · 0.85
drawScrollFunction · 0.85
isVanillaMethod · 0.85
operator==Method · 0.85

Calls 2

findShortcutFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected