mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Completely remove IGameCallback class
- CClient now inherits directly from CPrivilegedInfoCallback, like IGameCallback did before. However CClient no longer needs dummy implementation of IGameEventCallback - CGObjectInstance hierarchy now uses CPrivilegedInfoCallback for callback. Actual events can only be emitted in calls that receive IGameEventCallback pointer, e.g. heroVisit - CGameHandler now inherits directly from both CPrivilegedInfoCallback and IGameEventCallback as it did before via IGameCallback
This commit is contained in:
@ -72,7 +72,7 @@ CMapLoaderH3M::CMapLoaderH3M(const std::string & mapName, const std::string & mo
|
||||
//must be instantiated in .cpp file for access to complete types of all member fields
|
||||
CMapLoaderH3M::~CMapLoaderH3M() = default;
|
||||
|
||||
std::unique_ptr<CMap> CMapLoaderH3M::loadMap(IGameCallback * cb)
|
||||
std::unique_ptr<CMap> CMapLoaderH3M::loadMap(CPrivilegedInfoCallback * cb)
|
||||
{
|
||||
// Init map object by parsing the input buffer
|
||||
map = new CMap(cb);
|
||||
|
Reference in New Issue
Block a user