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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user