MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / createGame

Function createGame

TheForceEngine/TFE_Game/igame.cpp:56–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56IGame* createGame(GameID id)
57{
58 IGame* game = nullptr;
59 switch (id)
60 {
61 case Game_Dark_Forces:
62 {
63 game = new TFE_DarkForces::DarkForces();
64 } break;
65 case Game_Outlaws:
66 {
67 game = new TFE_Outlaws::Outlaws();
68 } break;
69 }
70 if (game)
71 {
72 game->id = id;
73 }
74
75 return game;
76}
77
78void freeGame(IGame* game)
79{

Callers 1

setAppStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected