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

Function loadGame

game/ui/general/difficultymenu.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32void DifficultyMenu::finish() {}
33
34std::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
48void DifficultyMenu::eventOccurred(Event *e)
49{

Callers 3

loadGameMethod · 0.85
loadSpecialSaveMethod · 0.85
eventOccurredMethod · 0.85

Calls 6

threadPoolEnqueueMethod · 0.80
loadModsMethod · 0.80
startGameMethod · 0.80
initStateMethod · 0.80

Tested by

no test coverage detected