1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Extracted message-related functionality of CGameHandler to separate file

This commit is contained in:
Ivan Savenko
2023-07-12 21:13:17 +03:00
parent 71d6b8c882
commit baa865d857
9 changed files with 606 additions and 390 deletions

View File

@ -12,6 +12,7 @@
#include "CGameHandler.h"
#include "HeroPoolProcessor.h"
#include "PlayerMessageProcessor.h"
#include "../lib/IGameCallback.h"
#include "../lib/mapObjects/CGTownInstance.h"
@ -352,6 +353,6 @@ void ApplyGhNetPackVisitor::visitPlayerMessage(PlayerMessage & pack)
if(!pack.player.isSpectator()) // TODO: clearly not a great way to verify permissions
gh.throwOnWrongPlayer(&pack, pack.player);
gh.playerMessage(pack.player, pack.text, pack.currObj);
gh.playerMessages->playerMessage(pack.player, pack.text, pack.currObj);
result = true;
}