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

Method Register

engine/Poseidon/UI/GameModule.cpp:13–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void GameModuleRegistry::Register(GameModuleInfo info)
14{
15 auto& mods = Modules();
16 // Replace if already registered (allows re-registration in tests)
17 for (auto& m : mods)
18 {
19 if (m.id == info.id)
20 {
21 m = std::move(info);
22 return;
23 }
24 }
25 mods.push_back(std::move(info));
26}
27
28bool GameModuleRegistry::IsRegistered(GameModuleId id)
29{

Callers 4

TextBankGL33Method · 0.45
SoundSystemOALMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected