mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge CPrivilegedInfoCallback into CGameInfoCallback
This commit is contained in:
@@ -12,18 +12,18 @@
|
||||
|
||||
#include "../GameSettings.h"
|
||||
#include "../GameLibrary.h"
|
||||
#include "../callback/CPrivilegedInfoCallback.h"
|
||||
#include "../callback/CGameInfoCallback.h"
|
||||
#include "../json/JsonNode.h"
|
||||
#include "../mapObjects/CArmedInstance.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
BattleLayout BattleLayout::createDefaultLayout(CPrivilegedInfoCallback * cb, const CArmedInstance * attacker, const CArmedInstance * defender)
|
||||
BattleLayout BattleLayout::createDefaultLayout(CGameInfoCallback * cb, const CArmedInstance * attacker, const CArmedInstance * defender)
|
||||
{
|
||||
return createLayout(cb, "default", attacker, defender);
|
||||
}
|
||||
|
||||
BattleLayout BattleLayout::createLayout(CPrivilegedInfoCallback * cb, const std::string & layoutName, const CArmedInstance * attacker, const CArmedInstance * defender)
|
||||
BattleLayout BattleLayout::createLayout(CGameInfoCallback * cb, const std::string & layoutName, const CArmedInstance * attacker, const CArmedInstance * defender)
|
||||
{
|
||||
const auto & loadHex = [](const JsonNode & node)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user