mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Added GameInstance class
- available as global GAME - integrates LOCPLINT (CPlayerInterface) - integrates CGI->mh (CMapHandler) - integrates CSH (CServerHandler)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "../CPlayerInterface.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../GameInstance.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
#include "../widgets/Buttons.h"
|
||||
|
||||
@@ -32,9 +33,9 @@ CScenarioInfoScreen::CScenarioInfoScreen()
|
||||
pos.h = 600;
|
||||
pos = center();
|
||||
|
||||
localSi = new StartInfo(*LOCPLINT->cb->getStartInfo());
|
||||
localSi = new StartInfo(*GAME->interface()->cb->getStartInfo());
|
||||
localMi = new CMapInfo();
|
||||
localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*LOCPLINT->cb->getMapHeader()));
|
||||
localMi->mapHeader = std::unique_ptr<CMapHeader>(new CMapHeader(*GAME->interface()->cb->getMapHeader()));
|
||||
|
||||
screenType = ESelectionScreen::scenarioInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user