-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameconfig.cpp
More file actions
45 lines (38 loc) · 1.19 KB
/
Copy pathgameconfig.cpp
File metadata and controls
45 lines (38 loc) · 1.19 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
37
38
39
40
41
42
43
44
45
#include "common/macros.h"
#include "gameroot.h"
#include "logic/roomlogic/core/gameconfig.h"
#include "config/gameconfig.h"
#include "process/process.h"
#include "context/context.h"
#include "utils/tarslog.h"
namespace game
{
namespace logic
{
namespace roomlogic
{
void GameConfig(void const *p, GameRoot *root)
{
PERFSTATS_ENTRY();
__TRY__
//DLOG_TRACE("roomkey:" << root->cfg->getRoomKey()<<", "<<"GameConfig.");
using namespace config;
using namespace context;
using namespace process;
if ( root->pro->getProcess() != nil_nnstate)
{
//DLOG_TRACE("roomkey:" << root->cfg->getRoomKey()<<", "<<"GameConfig. game is playing.");
return;
}
//
root->cfg->loadRoomConfig(p);
root->cfg->printRoomConfig();
//
root->con->gameInit();
root->pro->gameInit();
__CATCH__
PERFSTATS_EXIT();
}
}
}
}