1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +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

@@ -18,6 +18,8 @@
#include "../VCMI_Lib.h"
#include "../CTownHandler.h"
VCMI_LIB_NAMESPACE_BEGIN
CMapGenOptions::CMapGenOptions()
: width(CMapHeader::MAP_SIZE_MIDDLE), height(CMapHeader::MAP_SIZE_MIDDLE), hasTwoLevels(true),
playerCount(RANDOM_SIZE), teamCount(RANDOM_SIZE), compOnlyPlayerCount(RANDOM_SIZE), compOnlyTeamCount(RANDOM_SIZE),
@@ -491,3 +493,5 @@ void CMapGenOptions::CPlayerSettings::setPlayerType(EPlayerType::EPlayerType val
{
playerType = value;
}
VCMI_LIB_NAMESPACE_END