1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Refactoring of campaign handler: rename types and use strong typing

This commit is contained in:
Ivan Savenko
2023-06-25 21:16:03 +03:00
parent 453d441562
commit d1e5a347ff
29 changed files with 419 additions and 397 deletions

View File

@@ -14,7 +14,7 @@
VCMI_LIB_NAMESPACE_BEGIN
class CCampaignState;
class CampaignState;
VCMI_LIB_NAMESPACE_END
@@ -147,7 +147,7 @@ public:
void update() override;
static void openLobby(ESelectionScreen screenType, bool host, const std::vector<std::string> * names, ELoadMode loadMode);
static void openCampaignLobby(const std::string & campaignFileName);
static void openCampaignLobby(std::shared_ptr<CCampaignState> campaign);
static void openCampaignLobby(std::shared_ptr<CampaignState> campaign);
void openCampaignScreen(std::string name);
static std::shared_ptr<CMainMenu> create();