1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Separated game and battle callback (server & client only)

This commit is contained in:
Ivan Savenko
2023-08-28 17:43:57 +03:00
parent fc4dfda00f
commit 3a88180494
34 changed files with 437 additions and 346 deletions

View File

@@ -136,9 +136,9 @@ const Services * CGameHandler::services() const
return VLC;
}
const CGameHandler::BattleCb * CGameHandler::battle() const
const CGameHandler::BattleCb * CGameHandler::battle(const BattleID & battleID) const
{
return this;
return gs->getBattle(battleID);
}
const CGameHandler::GameCb * CGameHandler::game() const