MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / getUserByHash

Method getUserByHash

src/openrct2/network/NetworkUser.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 const User* UserManager::getUserByHash(const std::string& hash) const
178 {
179 auto it = _usersByHash.find(hash);
180 if (it != _usersByHash.end())
181 {
182 return it->second.get();
183 }
184 return nullptr;
185 }
186
187 const User* UserManager::getUserByName(const std::string& name) const
188 {

Callers 3

GetGroupIDByHashMethod · 0.80
AddPlayerMethod · 0.80
ServerHandleAuthMethod · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected