MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / InitializeClientGame

Method InitializeClientGame

ogsr_engine/xrGame/Level_start.cpp:193–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void CLevel::InitializeClientGame(NET_Packet& P)
194{
195 string256 game_type_name;
196 P.r_stringZ(game_type_name);
197 if (game && !xr_strcmp(game_type_name, game->type_name()))
198 return;
199
200 xr_delete(game);
201 Msg("- Game configuring : Started ");
202 CLASS_ID clsid = game_GameState::getCLASS_ID(game_type_name, false);
203 game = smart_cast<game_cl_GameState*>(NEW_INSTANCE(clsid));
204 game->set_type_name(game_type_name);
205 game->Init();
206 m_bGameConfigStarted = TRUE;
207
208 R_ASSERT(Load_GameSpecific_After());
209}

Callers

nothing calls this directly

Calls 8

xr_deleteFunction · 0.85
MsgFunction · 0.85
Load_GameSpecific_AfterFunction · 0.85
set_type_nameMethod · 0.80
xr_strcmpFunction · 0.50
r_stringZMethod · 0.45
type_nameMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected