1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

Removed CGI in favor of VLC. Map handle is for now global variable

This commit is contained in:
Ivan Savenko
2025-02-10 22:52:48 +00:00
parent f657e85305
commit ffd37a8fa8
106 changed files with 940 additions and 1211 deletions

View File

@ -15,7 +15,6 @@
#include "mapHandler.h"
#include "../../CCallback.h"
#include "../CGameInfo.h"
#include "../CPlayerInterface.h"
#include "../PlayerLocalState.h"
@ -92,7 +91,7 @@ bool MapRendererBaseContext::tileAnimated(const int3 & coordinates) const
const TerrainTile & MapRendererBaseContext::getMapTile(const int3 & coordinates) const
{
return CGI->mh->getMap()->getTile(coordinates);
return MAPHANDLER->getMap()->getTile(coordinates);
}
const MapRendererBaseContext::MapObjectsList & MapRendererBaseContext::getObjects(const int3 & coordinates) const
@ -103,7 +102,7 @@ const MapRendererBaseContext::MapObjectsList & MapRendererBaseContext::getObject
const CGObjectInstance * MapRendererBaseContext::getObject(ObjectInstanceID objectID) const
{
return CGI->mh->getMap()->objects.at(objectID.getNum());
return MAPHANDLER->getMap()->objects.at(objectID.getNum());
}
const CGPath * MapRendererBaseContext::currentPath() const