room_msg.proto
7.4 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
//room 处理 lobby 的消息
//syntax="proto3";
package room_msg;
import "share_msg.proto";
////////////////////////////////////////////////
//room[0x20000,0x2ffff]直接穿透
////////////////////////////////////////////////
message notify_deal_msg//0,0x20000#发牌
{
}
//掼蛋 玩家贡的状态
message gd_gong_flag_t
{
optional uint64 uid = 1;//用户ID
optional uint32 flag = 31;//0:无,1:进贡,2:还贡,3:抗贡#share_msg.E_POKER_GONG
}
//调试 扑克 展示
message debug_poker_show_t
{
optional uint64 uid = 1;//用户ID
repeated uint32 poker_key = 30;//牌
}
message notify_deal_msg_res
{
optional uint32 gd_level_point = 1;//掼蛋.本局打几,扑克点数
optional share_msg.room_data_t room_data = 3;//房间数据
repeated uint32 poker_key = 30;//牌
repeated gd_gong_flag_t gd_gong_flag = 32;//玩家贡的状态
repeated debug_poker_show_t debug_poker_show = 33;//牌
}
message gd_jin_gong_msg//1,0x20002#掼蛋进贡
{
optional uint32 poker_key = 3;//扑克索引#E_POKER_SUIT
}
message gd_jin_gong_msg_res
{
}
message gd_huan_gong_msg//1,0x20003#掼蛋还贡
{
optional uint32 poker_key = 3;//扑克索引#E_POKER_SUIT
}
message gd_huan_gong_msg_res
{
}
message notify_shot_msg//0,0x20004#通知轮到谁行动
{
}
message notify_shot_msg_res
{
optional uint64 uid = 1;//行动人的UID
optional uint32 is_jie_feng = 2;//是否接风[0:不接, 1:接]
}
message notify_gd_gong_poker_msg//0,0x20005#掼蛋 贡 牌 消息
{
}
//贡 还贡 双方
message gd_gong_t
{
optional uint64 jin_gong_uid = 1;//进贡用户ID
optional uint64 huan_gong_uid = 2;//还贡用户ID
optional uint32 jin_gong_poker_key = 3;//进贡牌
optional uint32 huan_gong_poker_key = 4;//还贡牌
}
message notify_gd_gong_poker_msg_res
{
repeated gd_gong_t gd_gong = 1;//掼蛋贡
}
message notify_off_msg//0,0x20006#通知谁掉线
{
}
message notify_off_msg_res
{
optional uint64 uid = 1;//掉线的UID
}
message gd_shot_msg//1,0x20007#掼蛋 出牌
{
optional uint32 poker_gd_type = 3;//出牌类型#E_POKER_GD_TYPE
repeated uint32 poker_key = 30;//牌
}
message gd_shot_msg_res
{
optional uint64 uid = 1;//行动人的UID
optional uint32 poker_gd_type = 3;//出牌类型#E_POKER_GD_TYPE
repeated uint32 poker_key = 30;//牌
}
message gd_left_poker_msg//0,0x20008#剩余的牌
{
}
message gd_left_poker_msg_res
{
repeated debug_poker_show_t poker_show = 1;//牌
}
message user_chat_msg//1,0x20009#用户聊天
{
optional string chat = 2;//聊天内容
}
message user_chat_msg_res
{
optional uint64 uid = 1;//用户id
optional string chat = 2;//聊天内容
}
message gd_partner_left_poker_msg//0,0x2000a#对家剩余的牌
{
}
message gd_partner_left_poker_msg_res
{
optional debug_poker_show_t poker_show = 1;//牌
}
message notify_add_money_msg//0,0x2000b#通知加钱
{
}
message notify_add_money_msg_res
{
optional uint64 uid = 1;//用户id
optional uint32 add_cnt = 2;//添加的数量
}
message notify_reduce_money_msg//0,0x2000c#通知减钱
{
}
message notify_reduce_money_msg_res
{
optional uint64 uid = 1;//用户id
optional uint32 reduce_cnt = 2;//减少的数量
}
message notify_change_open_room_score_msg//0,0x2000d#通知改变开房积分
{
}
message notify_change_open_room_score_msg_res
{
optional uint64 uid = 1;//用户id
optional int32 cnt = 2;//改变的数量
}
///////////////////////////////
//血战到底
///////////////////////////////
message notify_xzdd_ding_msg//0,0x20201#血战到底 定牌 消息
{
}
//定牌
message xzdd_ding_t
{
optional uint64 uid = 1;//用户ID
optional uint32 ding_suit = 2;//定牌
}
message notify_xzdd_ding_msg_res
{
repeated xzdd_ding_t xzdd_ding = 1;//定牌
}
message notify_xzdd_makers_msg//0,0x20202#血战到底 庄家 消息
{
}
message notify_xzdd_makers_msg_res
{
optional uint64 uid = 1;//庄家ID
}
message xzdd_ding_msg//1,0x20203#血战到底 定牌
{
optional uint32 mahjong_suit = 1;//麻将花色[1,2,3]#share_msg.E_MAHJONG_SUIT
}
message xzdd_ding_msg_res
{
}
//麻将 花色,牌点
message mahjong_suit_point_t
{
optional uint32 suit = 1;//花色#share_msg.E_MAHJONG_SUIT
optional uint32 point = 2;//牌点
}
message xzdd_da_msg//1,0x20204#血战到底 打
{
optional uint32 key = 1;//麻将
}
message xzdd_da_msg_res
{
optional uint64 uid = 1;//ID
optional uint32 key = 2;//麻将
}
message notify_xzdd_fa_msg//0,0x20205#血战到底 发牌
{
}
message notify_xzdd_fa_msg_res
{
optional uint64 uid = 1;//ID
optional uint32 key = 2;//麻将
}
message notify_xzdd_pggh_msg//0,0x20206#血战到底 可碰杠过胡
{
}
message notify_xzdd_pggh_msg_res
{
}
message xzdd_peng_msg//1,0x20207#血战到底 碰
{
}
message xzdd_peng_msg_res
{
optional uint64 uid = 1;//ID
}
message xzdd_gang_msg//1,0x20208#血战到底 杠
{
optional uint32 key = 1;//麻将
}
message xzdd_gang_msg_res
{
optional uint64 uid = 1;//ID
optional uint32 key = 2;//麻将
}
message xzdd_guo_msg//1,0x20209#血战到底 过
{
}
message xzdd_guo_msg_res
{
optional uint64 uid = 1;//ID
}
message xzdd_hu_msg//1,0x2020a#血战到底 胡
{
}
message xzdd_hu_msg_res
{
optional uint64 uid = 1;//ID
}
message notify_xzdd_wait_pggh_msg//0,0x2020b#血战到底 等待 可碰杠过胡
{
}
message notify_xzdd_wait_pggh_msg_res
{
}
//血战到底 麻将 展示
message xzdd_mj_show_t
{
optional uint64 uid = 1;//用户ID
repeated uint32 key = 2;//牌
optional uint32 no_ting = 3;//玩家 没听牌.1:没听牌
optional uint32 huazhu = 4;//玩家是否花猪,1:花猪
optional uint32 dajiao = 5;//玩家是否大叫,1:大叫
optional int32 change_money = 6;//玩家钱的变化
optional uint32 back_money = 7;//玩家是否退税,1:退税
}
message xzdd_left_mj_msg//0,0x2020c#血战到底 剩余的牌
{
}
message xzdd_left_mj_msg_res
{
repeated xzdd_mj_show_t xzdd_mj_show = 1;//用户的牌
}
message notify_xzdd_disabled_show_change_money_msg//0,0x2020d#血战到底 不显示加钱扣钱数字
{
}
message notify_xzdd_disabled_show_change_money_msg_res
{
}
///////////////////////////////
//牛牛
///////////////////////////////
message notify_nn_begin_time_msg//0,0x20301#牛牛 开始时间 消息
{
}
message notify_nn_begin_time_msg_res
{
optional uint32 time_sec = 1;//时间,秒
}
message nn_bet_msg//1,0x20302#牛牛 抢庄
{
optional uint32 bet = 1;//庄的倍数, niuniu.xml
}
message nn_bet_msg_res
{
optional uint64 uid = 1;//用户ID
optional uint32 bet = 2;//庄的倍数
}
message notify_nn_makers_msg//0,0x20303#牛牛 谁是庄家 消息
{
}
message notify_nn_makers_msg_res
{
optional uint64 uid = 1;//庄家用户ID
}
message nn_bet2_msg//1,0x20304#牛牛 下注
{
optional uint32 bet2 = 1;//下注倍数, niuniu.xml
}
message nn_bet2_msg_res
{
optional uint64 uid = 1;//用户ID
optional uint32 bet2 = 2;//下注倍数
}
message notify_bet2_deal_msg//0,0x20305#押注后 发牌
{
}
message notify_bet2_deal_msg_res
{
optional uint32 poker_key = 1;//牌
}
message nn_play_msg//1,0x20306#牛牛 出牌
{
}
message nn_play_msg_res
{
optional uint64 uid = 1;//用户ID
}
message notify_nn_poker_show_msg//0,0x20307#牛牛 显示牌
{
}
//牛牛 扑克 展示
message nn_poker_show_t
{
optional uint64 uid = 1;//用户ID
repeated uint32 poker_key = 2;//牌
optional uint32 poker_type = 3;//牛牛 牌型 share_msg.E_POKER_NN_TYPE
}
message notify_nn_poker_show_msg_res
{
repeated nn_poker_show_t nn_poker_show = 1;//用户的牌
}
message nn_change_msg//1,0x20308#牛牛 换牌
{
}
message nn_change_msg_res
{
repeated uint32 poker_key = 2;//牌
}