1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +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
@@ -16,6 +16,8 @@
#include "JsonRandom.h"
#include "../IGameCallback.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace {
MetaString loadMessage(const JsonNode & value)
{
@@ -220,3 +222,5 @@ std::unique_ptr<IObjectInfo> CRewardableConstructor::getObjectInfo(std::shared_p
{
return std::unique_ptr<IObjectInfo>(new CRandomRewardObjectInfo(objectInfo));
}
VCMI_LIB_NAMESPACE_END