lobby_gateway.proto
4.01 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
//lobby 处理 gateway 的消息
//syntax="proto3";
package lobby_gateway_msg;
import "share_msg.proto";
////////////////////////////////////////////////
//lobby[0x1000,0x1fff]lobby相关消息
////////////////////////////////////////////////
message lobby_enter_msg//1,0x1000#进入大厅
{
repeated share_msg.item_t items = 1;//物品
optional string nick = 2;//昵称
optional uint32 score = 3;//积分
optional uint32 head = 4;//头像
}
message lobby_enter_msg_res
{
// repeated share_msg.key_val_t user_cnt = 3;//每个场次,玩家人数
repeated share_msg.room_cfg_t room_cfg = 4;//每个场次,玩家人数
}
message lobby_enter_room_msg//1,0x1001#进入房间
{
optional uint32 base_money = 1;//押注
optional uint32 open_room_type = 2;//开房类型, 0:不开房,1:AA,2:房主付费
optional string room_num = 3;//房间号
optional string nick = 4;//昵称
optional uint32 head = 5;//头像
}
message lobby_enter_room_msg_res
{
optional string room_num = 3;//房间号
}
message lobby_room_ready_msg//1,0x1002#准备
{
optional uint32 ready = 1;//0:取消准备,1:准备好了
}
message lobby_room_ready_msg_res
{
}
message lobby_out_msg//1,0x1003#离开
{
}
message lobby_out_msg_res
{
}
message lobby_out_room_msg//1,0x1004#离开房间
{
}
message lobby_out_room_msg_res
{
optional uint32 out_room_reason = 1;//离开房间原因#share_msg.E_OUT_ROOM_REASON
}
message notify_user_show_in_room_msg//0,0x1005#通知,玩家在room中的显示
{
}
message notify_user_show_in_room_msg_res
{
repeated share_msg.user_show_in_room_t user_show_in_room = 1;//
}
message notify_game_end_msg//0,0x1006#游戏结束
{
}
message notify_game_end_msg_res
{
repeated share_msg.user_game_end_t user_game_end = 1;
optional uint32 game_id = 2;//游戏ID#share_msg.E_GAME_ID
optional share_msg.room_data_t room_data = 3;//房间数据
optional share_msg.mail_xzdd_record_t xzdd = 101;
optional share_msg.mail_nn_record_t nn = 102;
}
message notify_exit_lobby_msg//0,0x1007#退出大厅
{
}
message notify_exit_lobby_msg_res
{
}
message notify_escape_msg//0,0x1008#逃跑
{
}
message notify_escape_msg_res
{
optional uint64 uid = 1;//用户ID
optional uint32 game_id = 2;//游戏ID#share_msg.E_GAME_ID_VAL
optional uint32 reduce_money = 3;//钱
// optional uint32 reduce_score = 5;//积分
}
message use_item_msg//1,0x1009#使用道具
{
optional uint64 uid = 1;//使用用户ID
optional uint64 peer_uid = 2;//目标用户ID
optional uint32 item_id = 3;//道具ID
optional uint32 item_cnt = 4;//道具数量
}
message use_item_msg_res
{
optional uint64 uid = 1;//使用用户ID
optional uint64 peer_uid = 2;//目标用户ID
optional uint32 item_id = 3;//道具ID
optional uint32 item_cnt = 4;//道具数量
}
message notify_reduce_item_msg//0,0x100a#减少道具
{
}
message notify_reduce_item_msg_res
{
repeated share_msg.item_t items = 1;//物品
}
message notify_add_item_msg//0,0x100b#增加道具
{
}
message notify_add_item_msg_res
{
repeated share_msg.item_t items = 1;//物品
}
message notify_mail_gd_record_msg//0,0x100c#通知邮件gd记录
{
}
message notify_mail_gd_record_msg_res
{
optional share_msg.mail_gd_record_t mail_gd_record = 1;//
}
message update_item_msg//1,0x100d#更新道具
{
repeated share_msg.item_t items = 1;//物品
}
message update_item_msg_res
{
}
message notify_mail_xzdd_record_msg//0,0x100e#通知邮件xzdd记录
{
}
message notify_mail_xzdd_record_msg_res
{
optional share_msg.mail_xzdd_record_t mail_xzdd_record = 1;//
}
message notify_task_hu_msg//0,0x100f#胡
{
}
message notify_task_hu_msg_res
{
optional uint32 hu = 1;//0:点炮胡,1:自摸胡,2:没胡
optional uint32 game_id = 2;//游戏ID#share_msg.E_GAME_ID
}
message notify_mail_nn_record_msg//0,0x1010#通知邮件nn记录
{
}
message notify_mail_nn_record_msg_res
{
optional share_msg.mail_nn_record_t mail_nn_record = 1;//
}
message user_chat_msg//1,0x1011#用户聊天
{
optional string chat = 2;//聊天内容
}
message user_chat_msg_res
{
optional uint64 uid = 1;//用户id
optional string chat = 2;//聊天内容
}