MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / get

Method get

game/state/city/base.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21constexpr int Base::SIZE;
22
23template <> sp<Base> StateObject<Base>::get(const GameState &state, const UString &id)
24{
25 auto it = state.player_bases.find(id);
26 if (it == state.player_bases.end())
27 {
28 LogError("No baseas matching ID \"%s\"", id);
29 return nullptr;
30 }
31 return it->second;
32}
33
34template <> const UString &StateObject<Base>::getPrefix()
35{

Callers 15

SaveManagerMethod · 0.45
saveGameMethod · 0.45
getSaveListMethod · 0.45
saveGameMethod · 0.45
saveGameDeltaMethod · 0.45
loadGameMethod · 0.45
saveTilesetMethod · 0.45
loadTilesetMethod · 0.45
saveImagePackMethod · 0.45
loadImagePackMethod · 0.45
saveAnimationPackMethod · 0.45
loadAnimationPackMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected