MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetCode

Method GetCode

src/lua/LuaCallInDB.h:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 inline int GetCode(const std::string& ciName) const {
157 std::map<std::string, int>::const_iterator it = nameToCode.find(ciName);
158 if (it == nameToCode.end()) {
159 return 0;
160 }
161 return it->second;
162 }
163
164 inline const std::string* GetName(int ciCode) const {
165 std::map<int, std::string>::const_iterator it = codeToName.find(ciCode);

Callers 3

SetupValidCallInsMethod · 0.45
CanUseCallInMethod · 0.45
ScriptSetCallInMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected