-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstconfig.cpp
More file actions
36 lines (31 loc) · 1 KB
/
Copy pathconstconfig.cpp
File metadata and controls
36 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "common/macros.h"
#include "gameroot.h"
#include "context/context.h"
#include "Comm/ITableGame.h"
#include "utils/tarslog.h"
#include "process/process.h"
#include "config/gameconfig.h"
namespace game
{
namespace logic
{
namespace roomlogic
{
void ConstConfig(void const *p, GameRoot *root)
{
PERFSTATS_ENTRY();
__TRY__
using namespace RoomSo;
using namespace context;
using namespace process;
using namespace config;
RoomSo::TGAME_ConstConfig const *nnrs = static_cast<RoomSo::TGAME_ConstConfig const *>(p);
DLOG_TRACE("roomkey:" << root->cfg->getRoomKey()<<", "<<"TGAME_ConstConfig_E" << ", data: " << printTars(*nnrs));
//设置常量配置
root->con->setConstConfig(*nnrs);
__CATCH__
PERFSTATS_EXIT();
}
}
}
}