1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined

preparation for having client and server in a single process
This commit is contained in:
Andrey Filipenkov
2022-07-26 16:07:42 +03:00
parent 1319c8f197
commit ff635edc0b
467 changed files with 2117 additions and 211 deletions

View File

@@ -12,6 +12,8 @@
#include "CPlayerState.h"
#include "CGameStateFwd.h"
VCMI_LIB_NAMESPACE_BEGIN
PlayerState::PlayerState()
: color(-1), human(false), enteredWinningCheatCode(false),
enteredLosingCheatCode(false), status(EPlayerStatus::INGAME)
@@ -67,3 +69,5 @@ int PlayerState::getResourceAmount(int type) const
{
return vstd::atOrDefault(resources, static_cast<size_t>(type), 0);
}
VCMI_LIB_NAMESPACE_END