MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Register

Function Register

engine/Poseidon/Dev/Debug/DebugCommands.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21} // namespace
22
23void Register(const Command& cmd)
24{
25 auto& r = Registry();
26 for (const auto& existing : r)
27 {
28 if (std::string_view(existing.name) == std::string_view(cmd.name))
29 {
30 LOG_WARN(Core, "DebugCommands: duplicate registration of '{}'", cmd.name);
31 return;
32 }
33 }
34 r.push_back(cmd);
35}
36
37const Command* Find(std::string_view name)
38{

Callers 15

RegisterGameModulesMethod · 0.85
RegisterGameModulesMethod · 0.85
InitMethod · 0.85
LoadAndRegisterMethod · 0.85
RegisterAllMethod · 0.85
RegisterTextAudioBackendFunction · 0.85
RegisterMethod · 0.85
RegisterMethod · 0.85
RegisterMethod · 0.85
RegisterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected