-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXGameSh.proto
More file actions
87 lines (71 loc) · 2.37 KB
/
Copy pathXGameSh.proto
File metadata and controls
87 lines (71 loc) · 2.37 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
syntax = "proto3";
option cc_generic_services=false;
package XGameSh;
enum Eum_Sh_Msgid
{
E_MSGID_DEFAULT = 0;
E_SH_MSGID_ROOM_LIST_CS = 901; //场次列表消息请求[CS]
E_SH_MSGID_LOGIN_ROOM_CS = 902; //登录房间消息请求[CS]
E_SH_MSGID_MATCH_CS = 903; //匹配请求 返回[CS]
E_SH_MSGID_MATCH_2C = 904; //匹配结果通知[CS]
E_SH_MSGID_EXIT_CS = 905; //退出房间请求 返回[CS]
E_SH_MSGID_EXIT_2C = 906; //退出房间通知
}
//E_SH_MSGID_ROOM_LIST_CS
message TShMsgRespRoomList
{
message RoomInfo
{
int32 iBetId = 1; //场次ID
int32 iBaseScore = 2; //底分
int64 lMinScore = 3; //最小带入
int64 lMaxScoreLimit = 4; //最大限制
int32 iOnlineCount = 5; //在线人数
int32 iSeatNum = 6; //座位数
}
int32 iResultID = 1;
repeated RoomInfo mRoomInfo = 2;
}
//E_SH_MSGID_LOGIN_ROOM_CS
message TShMsgRespLoginRoom
{
sint32 iResultID = 1; //返回结果: 0.成功,其他失败
sint32 iStatue = 2; //玩家状态 5:游戏中 8:匹配中
sint32 iMatchTime = 3; //剩余匹配时间
}
//E_SH_MSGID_MATCH_CS
message TShMsgCSMatchGame
{
sint32 iResultID = 1; //返回结果: 0.成功,其他失败
sint32 iOptionType = 2; //0:匹配 1:取消
int32 iBetId = 3; //场次ID
int32 iSeatNum = 4; //座位数
PlayerInfo mPlayerInfo = 5;
}
message PlayerInfo
{
sint64 lPlayerID = 1; //玩家ID
sint32 iTableID = 2; //桌子ID
sint32 iChairID = 3; //所在桌子位置
string sNickName = 4; //玩家昵称
string sHeadStr = 5; //头像路径
sint32 iPlayerGender = 6; //玩家性别 0-未知 1-男 2-女
string sPlayerIP = 7; //玩家IP
string sSignature = 8; //玩家签名
sint32 iStatue = 9; //玩家状态
sint64 lPlayerScore = 10; //玩家当前筹码
}
//E_SH_MSGID_MATCH_2C
message TShMsgNotifyEnterGame
{
int32 iResultID = 1;
repeated PlayerInfo mPlayerInfo = 2;
}
//E_SH_MSGID_EXIT_CS
message TShMsgRespExitRoom
{
int32 iResultID = 1;
int64 lPlayerID = 2;
int32 iTableID = 3;
int32 iChairID = 4;
}