1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Make IObjectInterface::cb non-static

This commit is contained in:
Ivan Savenko
2024-01-01 16:37:48 +02:00
parent c37ce05d06
commit a15366f5a5
89 changed files with 502 additions and 445 deletions

View File

@@ -11,6 +11,7 @@
#pragma once
#include "CMapHeader.h"
#include "../GameCallbackHolder.h"
#include "../MetaString.h"
#include "../mapObjects/MiscObjects.h" // To serialize static props
#include "../mapObjects/CQuest.h" // To serialize static props
@@ -73,10 +74,10 @@ struct DLL_LINKAGE DisposedHero
};
/// The map contains the map header, the tiles of the terrain, objects, heroes, towns, rumors...
class DLL_LINKAGE CMap : public CMapHeader
class DLL_LINKAGE CMap : public CMapHeader, public GameCallbackHolder
{
public:
CMap();
explicit CMap(IGameCallback *cb);
~CMap();
void initTerrain();