| 32 | void DifficultyMenu::finish() {} |
| 33 | |
| 34 | std::shared_future<void> loadGame(sp<GameState> state) |
| 35 | { |
| 36 | auto loadTask = fw().threadPoolEnqueue([state]() -> void { |
| 37 | state->loadMods(); |
| 38 | state->startGame(); |
| 39 | state->initState(); |
| 40 | state->fillPlayerStartingProperty(); |
| 41 | state->fillOrgStartingProperty(); |
| 42 | return; |
| 43 | }); |
| 44 | |
| 45 | return loadTask; |
| 46 | } |
| 47 | |
| 48 | void DifficultyMenu::eventOccurred(Event *e) |
| 49 | { |
no test coverage detected