-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgameroot.h
More file actions
67 lines (59 loc) · 1.36 KB
/
Copy pathgameroot.h
File metadata and controls
67 lines (59 loc) · 1.36 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/***************************************************************************************
# Copyright (c) 2018
# All rights reserved
#
# @author :
# @name :
# @file :
# @date :
# @describe:
#***************************************************************************************/
#pragma once
#include "Comm/ITableGame.h"
namespace game
{
namespace config
{
class GameConfig;
}
namespace config
{
class PluginConfig;
}
namespace context
{
class Context;
}
namespace process
{
class Process;
}
namespace gameserver
{
class GameServer;
}
class GameRoot
{
public:
/**
*
*/
GameRoot(int iInitMode, GameInitParam const &sInitParams);
/**
*
*/
~GameRoot();
public:
inline std::string const &roomid() const
{
return sParams.strRoomTableId;
}
public:
GameInitParam const sParams;
config::GameConfig *cfg; //玩法配置
config::PluginConfig *plg; //玩法配置
context::Context *con; //游戏上下文
process::Process *pro; //游戏处理
gameserver::GameServer *gs; //游戏通信句柄
};
}