| 54 | } |
| 55 | |
| 56 | IGame* 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 | |
| 78 | void freeGame(IGame* game) |
| 79 | { |