gateway_msg.proto
19.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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
//syntax="proto3";
package gateway_msg;
import "common_msg.proto";
import "share_msg.proto";
////////////////////////////////////////////////
//gateway[0x00000,0x0ffff]
////////////////////////////////////////////////
////////////////////////////////////////////////
//登录消息,[0x00100,0x001ff]
////////////////////////////////////////////////
//登陆消息范围,用于服务器判定
enum LOGIN_CMD
{
LOGIN_CMD_BEGIN = 0x0100;//登录消息最小值
LOGIN_CMD_END = 0x01ff;//登录消息最大值
}
message login_msg//1,0x00101#登录
{
optional uint32 platform = 1;//登陆类型#share_msg.E_PLATFORM
optional string account = 2; //账号
optional string session = 3;//登录的session
optional uint32 shanghai_dianxin_pay_id = 101;//上海电信会员支付ID(0:不是会员, 其他对应pay.xml中的pay_id)
}
message task_daily_t
{
optional uint32 type = 1;//任务类型#share_msg.E_TASK_DAILY_TYPE
optional uint32 param = 2;//参数
optional uint32 step_id = 3;//领取到的step_id
}
message achievement_t
{
optional uint32 type_id = 1;//成就ID
repeated uint32 get_reward_id = 2;//领取过的奖励ID
optional uint32 data = 3;//当前数据
}
message online_reward_t
{
optional uint32 id = 1;//领到的ID
optional uint32 time_sec = 2;//距离下一个ID的时间
}
message login_msg_res
{
optional uint32 has_role = 1;//是否有角色0:无,1:有
repeated uint32 body = 2;//身上穿的衣服id
repeated share_msg.item_t items = 3;//道具信息
optional uint32 wall = 4;//墙上的墙纸
optional uint32 play_game_reward = 5;//玩游戏抽奖 奖励 1:已领取
repeated uint32 sign = 6;//签到信息
repeated uint32 sign_reward = 7;//已领取的签到奖励
optional uint32 role_reward = 8;//已领取的新手角色奖励
optional uint32 role_reward_time = 9;//已领取的新手角色奖励的时间
optional uint32 time_second = 10;//当前时间
repeated share_msg.pet_t pets = 11;//宠物
repeated share_msg.furniture_t furnitures = 12;//家具
repeated share_msg.key_val_t pet_id = 13;//房间中的宠物 key:idx位置序号, val1:pet_id宠物id
repeated share_msg.mail_t mail = 14;//邮件
repeated uint64 friend_uid = 15;//好友ID
optional uint32 create_reward = 16;//创建礼包,是否领取[0:未领取,1:领取过]
//支付,按天数领取
repeated share_msg.key_val_t pay_day = 17;//v1:上一次领取时间.v2:过期时间.v3:购买的时间(秒)
repeated uint32 first_pay_id = 18;//使用过的首充
optional online_reward_t online_reward = 19;//每日在线礼包
optional uint32 relief_cnt = 20;//每日救济数量
repeated uint64 flower_uid = 21;//送过花的好友ID
repeated uint32 pay_daily_id = 25;//使用过的每日首充
repeated uint32 first_cycle_pay_id = 26;//使用过的周期首充(type:5)
optional share_msg.user_show_t user_show = 27;
repeated achievement_t achievement = 30;//成就
//optional uint32 pet_btl_cnt = 32;//出战宠物,次数
optional uint32 pet_btl_win_cnt = 33;//出战宠物,胜场
optional uint32 pet_btl_exp = 34;//出战宠物,胜点//[废弃]
//optional uint32 pet_btl_time = 35;//可出战宠物,时间
repeated uint32 received_duanwei_lv_reward = 36;//领取过的段位等级奖励
//repeated uint32 free_game_id = 37;//可玩的包月小游戏
repeated uint32 vip_pay_reward = 38;//vip 按时间充值活动(每个时间段充值,只能领取一次)
optional uint32 pet_level_max_cnt = 40;//宠物满级数量
optional uint32 shanchang_game_id = 41;//擅长游戏ID(0:无)
optional uint32 ruoxiang_game_id = 42;//弱项游戏ID(0:无)
optional uint32 game_pk_cnt = 43;//小游戏pk,次数
optional uint32 game_pk_win = 44;//小游戏pk,胜利次数
optional uint32 game_pk_val = 45;//小游戏pk值
optional uint32 game_pk_daily_cnt = 46;//小游戏每日已pk次数
optional uint32 pk_cnt = 47;//pk,次数
optional uint32 pk_win = 48;//pk,胜利次数
optional uint32 pk_val = 49;//pk值
optional uint32 pk_daily_cnt = 50;//每日已pk次数
repeated share_msg.key_val_t active_data = 51;//活动信息 key:active.xml中的id,v1:状态(0:未完成, 1:完成未领取, 2:完成已领取)
repeated share_msg.key_val_t single_game_cnt = 52;//小游戏免费使用过的次数 key:小游戏id,v1:次数
}
message create_role_msg//1,0x00104#创建角色
{
optional string nick = 1;
optional uint32 head = 2;//头像
}
message create_role_msg_res
{
}
////////////////////////////////////////////////
//登录之后的消息,消息ID必须比登录消息大
////////////////////////////////////////////////
////////////////////////////////////////////////
//商店信息[0x00300,0x003ff]
////////////////////////////////////////////////
message shop_buy_msg//1,0x00301#买
{
optional uint32 id = 1; //
optional uint32 cnt = 2; //
}
message shop_buy_msg_res
{
}
message play_game_reward_msg//1,0x00302#玩游戏抽奖
{
}
message play_game_reward_msg_res
{
optional uint32 id = 1;//抽中的序号
}
message shop_buy_cnt_msg//1,0x00303#限量已买的数量
{
}
message shop_buy_cnt_msg_res
{
repeated share_msg.item_t items = 1;
}
message notify_chenghao_level_up_msg//0,0x00304#用户称号升级
{
}
message notify_chenghao_level_up_msg_res
{
optional uint32 level = 1;//新的等级
}
message pay_get_id_msg//1,0x00350#获取订单号
{
optional string product = 3;//商品ID
// optional uint32 game_id = 4;//购买的游戏ID
}
message pay_get_id_msg_res
{
optional string pay_id = 1; //订单号
optional string url_callback = 2; //回调URL
optional string peng_bo_shi_token = 3; //鹏博士token
optional string zfb_url_callback = 4; //支付宝回调URL
optional string wx_url_callback = 5; //微信回调URL
}
message notify_pay_succ_msg//0,0x00351#购买成功
{
}
message notify_pay_succ_msg_res
{
optional string product = 1;//产品号
}
message get_pay_day_reward_msg//1,0x00352#领取购买的每天领取奖励
{
optional uint32 id = 1; //pay.xml中的id
}
message get_pay_day_reward_msg_res
{
}
message shanghai_dianxin_pay_msg//1,0x00353#上海电信支付成功
{
optional uint32 shanghai_dianxin_pay_id = 1;//上海电信会员支付ID(0:不是会员, 其他对应pay.xml中的pay_id)
optional string order_number = 2;//订单号
optional string serial_number = 3;//流水号
}
message shanghai_dianxin_pay_msg_res
{
//支付,按天数领取
repeated share_msg.key_val_t pay_day = 17;//v1:上一次领取时间.v2:过期时间.v3:购买的时间(秒)
}
message single_game_info_msg//1,0x00354#获取游戏信息
{
}
message single_game_info_msg_res
{
repeated share_msg.game_info_t game_info = 1;
}
message single_game_rank_msg//1,0x00355#获取游戏排行
{
optional uint32 id = 1;//游戏ID
}
message single_game_rank_msg_res
{
optional share_msg.game_rank_t game_rank = 1;
}
message single_game_end_msg//1,0x00356#游戏结束
{
optional uint32 id = 1; //game id
optional uint32 score = 2; //游戏分数
}
message single_game_end_msg_res
{
repeated share_msg.item_t items = 1;//物品变更
}
message get_btl_rank_msg//1,0x00357#获取战斗排行
{
}
message get_btl_rank_msg_res
{
optional share_msg.btl_rank_t btl_rank = 1;
}
message get_vip_pay_reward_msg//1,0x00358#领取vip 按时间充值活动(每个时间段充值,只能领取一次) 的奖励
{
optional uint32 id = 1; //vip_pay_reward.xml中的id
}
message get_vip_pay_reward_msg_res
{
}
//message notify_pay_succ_single_game_msg//0,0x00359#通知小游戏购买成功
//{
//}
//message notify_pay_succ_single_game_msg_res
//{
// optional uint32 free_game_id = 37;//可玩的包月小游戏
//}
message get_peer_user_info_msg//1,0x0035a#获取对方玩家信息
{
optional uint64 uid = 1;//用户ID
}
message get_peer_user_info_msg_res
{
optional share_msg.peer_user_info_t peer_user_info = 1;
}
message single_game_pk_end_msg//1,0x0035b#游戏PK结束
{
optional uint32 id = 1; //game id
optional uint32 score = 2; //游戏分数
optional uint32 peer_score = 3; //对方游戏分数
optional uint64 peer_uid = 4;//对方UID
}
message single_game_pk_end_msg_res
{
repeated share_msg.item_t items = 1;//物品变更
optional int32 pk_val = 2; //PK值变化量
}
message single_exprie_game_rank_msg//1,0x0035c#获取游戏过期排行
{
optional uint32 id = 1;//序号ID
}
message single_exprie_game_rank_msg_res
{
optional share_msg.game_rank_t game_rank = 1;
optional uint32 cnt = 2; //参与次数
optional uint32 get_reward = 3; //0:未领取, 1:已领取
}
message single_exprie_game_rank_reward_msg//1,0x0035d#获取游戏过期排行 奖励
{
optional uint32 id = 1;//序号ID
}
message single_exprie_game_rank_reward_msg_res
{
}
////////////////////////////////////////////////
//角色基础信息[0x00400,0x004ff]
////////////////////////////////////////////////
message change_nick_msg//1,0x0402#改名字
{
optional uint32 id1 = 1;//名字表中的序号
optional uint32 id2 = 2;//名字表中的序号
optional uint32 id3 = 3;//名字表中的序号
}
message change_nick_msg_res
{
optional uint32 res = 1;//0:已改变,1:失败,被占用
optional string nick = 2;//名字
}
message change_head_msg//1,0x0403#改头像
{
optional uint32 head = 1;//头像
}
message change_head_msg_res
{
optional uint32 head = 1;//头像
}
message change_head_frame_msg//1,0x0404#改头像框
{
optional uint32 head_frame = 1;//头像框
}
message change_head_frame_msg_res
{
optional uint32 head_frame = 1;//头像框
}
message get_user_show_msg//1,0x0405#获取用户信息
{
optional uint64 uid = 1;//用户ID
}
message get_user_show_msg_res
{
optional share_msg.user_show_t user_show = 1;//用户信息
}
message body_off_msg//1,0x0406#脱下
{
optional uint32 body_type = 1;//share_msg.E_USER_BODY_TYPE
}
message body_off_msg_res
{
}
message body_on_msg//1,0x0407#穿上
{
optional uint32 id = 1;//衣服ID
}
message body_on_msg_res
{
}
message furniture_pos_msg//1,0x0408#设置家具位置
{
optional share_msg.furniture_t furniture = 1;//家具
}
message furniture_pos_msg_res
{
optional share_msg.furniture_t furniture = 1;//家具
}
message wall_on_msg//1,0x0409#换上墙纸
{
optional uint32 id = 1;//墙纸ID
}
message wall_on_msg_res
{
}
message pet_pos_msg//1,0x040a#设置宠物位置
{
optional uint32 id = 1;//
optional uint32 idx = 2;//摆放的序号, 0:取消
}
message pet_pos_msg_res
{
}
//message get_user_info_msg//1,0x040b#获取用户信息
//{
// optional uint64 uid = 1;//用户ID
//}
//message get_user_info_msg_res
//{
// optional uint32 achievement_cnt = 3;//
//}
message get_peer_user_home_msg//1,0x040c#获取用户家
{
optional uint64 uid = 1;//用户ID
}
message get_peer_user_home_msg_res
{
optional share_msg.user_home_t user_home = 1;//用户家信息
}
message add_friend_msg//1,0x040d#添加好友
{
optional uint64 uid = 1;//用户ID
}
message add_friend_msg_res
{
optional uint64 uid = 1;//用户ID
}
message del_friend_msg//1,0x040e#删除好友
{
optional uint64 uid = 1;//用户ID
}
message del_friend_msg_res
{
optional uint64 uid = 1;//用户ID
}
message random_friend_msg//1,0x040f# 随机推荐好友
{
}
message random_friend_msg_res
{
repeated uint64 uid = 1;//用户ID
}
message flower_msg//1,0x0410# 送花
{
optional uint64 uid = 1;//用户ID
}
message flower_msg_res
{
}
message update_msg//1,0x0411# 更新数据
{
optional uint32 valid = 1;//1:有效 0:无效(pay.xml 301)
}
message update_msg_res
{
}
/////////////////////////////////////////////////////////
////////////////////////////////////////////////
//任务信息[0x00500,0x005ff]
////////////////////////////////////////////////
message notify_task_daily_msg//0,0x00501#通知,每日任务
{
}
message notify_task_daily_msg_res
{
repeated task_daily_t task_daily = 5;//每日任务
}
message get_task_daily_reward_msg//1,0x00502#领取每日任务的奖励
{
optional uint32 task_id = 1;//任务ID
optional uint32 step_id = 2;//步骤ID
}
message get_task_daily_reward_msg_res
{
}
//message notify_do_task_daily_msg//0,0x00503#通知,在做的每日任务
//{
//}
//message notify_do_task_daily_msg_res
//{
// repeated task_daily_t task_daily = 5;//每日任务
//}
message notify_active_msg//0,0x00504#通知,改变的活动数据
{
}
message notify_active_msg_res
{
repeated share_msg.key_val_t active_data = 1;//活动信息 key:active.xml中的id,v1:状态(0:未完成, 1:完成未领取, 2:完成已领取)
}
message get_active_reward_msg//1,0x00505#领取活动的奖励
{
optional uint32 id = 1;//活动ID
}
message get_active_reward_msg_res
{
}
////////////////////////////////////////////////
//道具[0x00600,0x006ff]
////////////////////////////////////////////////
message notify_item_msg//0,0x0601#通知道具变化
{
}
message notify_item_msg_res
{
repeated share_msg.item_t items = 1;//物品变更
}
message use_item_msg//1,0x0603#使用道具
{
optional uint32 item_id = 1;//
optional uint64 peer_uid = 2;//对方UID
optional uint32 game_id = 3;//游戏ID,share_msg.E_GAME_ID
optional uint32 item_cnt = 4;//道具数量
}
message use_item_msg_res
{
optional uint64 uid = 1;//使用方UID
optional uint64 peer_uid = 2;//目标方UID
optional uint32 item_id = 3;//使用的道具
optional uint32 item_cnt = 4;//道具数量
}
message pet_eat_msg//1,0x0604#宠物吃
{
optional uint32 item_id = 1;//
optional uint32 pet_id = 2;//宠物ID
}
message pet_eat_msg_res
{
optional uint32 exp = 1;//
}
message pet_sell_msg//1,0x0605#宠物卖
{
}
message pet_sell_msg_res
{
}
message notify_item_cnt_max_msg//0,0x0606#通知道具数量已达上限
{
}
message notify_item_cnt_max_msg_res
{
repeated share_msg.item_t item = 1;//道具信息
}
message notify_pet_msg//0,0x060e#宠物状态
{
}
message notify_pet_msg_res
{
optional share_msg.pet_t pet = 1;
}
message pet_open_skill_msg//1,0x060f#宠物解封技能
{
optional uint32 pet_id = 1;//宠物ID
}
message pet_open_skill_msg_res
{
}
////////////////////////////////////////////////
//签到[0x00700,0x007ff]
////////////////////////////////////////////////
message sign_msg//1,0x00701#签到
{
}
message sign_msg_res
{
}
message sign_reward_msg//1,0x00702#签到领取奖励(废弃)
{
optional uint32 day = 1;//领取sign.xml中哪个档次的奖励
}
message sign_reward_msg_res
{
optional uint32 day = 1;//领取sign.xml中哪个档次的奖励
}
message sign_update_msg//1,0x00703#补签 (废弃)
{
}
message sign_update_msg_res
{
optional uint32 sign_day = 1;//补签的日子
}
message get_role_reward_msg//1,0x00704#领取新手奖励
{
}
message get_role_reward_msg_res
{
}
message get_online_reward_msg//1,0x00706#领取每日在线礼包
{
}
message get_online_reward_msg_res
{
optional online_reward_t online_reward = 19;//刚才领取的 每日在线礼包
}
message get_turntable_reward_msg//1,0x00709#获取 转盘抽奖
{
}
message get_turntable_reward_msg_res
{
optional uint32 id = 3;//抽中的序号
}
message get_turntable_reward_and_login_reward_msg//1,0x0070a#获取 转盘抽奖和登录奖励 信息
{
}
message get_turntable_reward_and_login_reward_msg_res
{
optional uint32 turntable_get = 1;//每日转盘是否今天领取过0:未领取,1:领取过
repeated uint32 login = 6;//登录信息
repeated uint32 login_reward = 7;//已领取的登录奖励
optional uint32 get_reward = 8;//本次领取登录奖励 0:本次未领取, 1:本次领取
}
message get_relief_msg//1,0x0070b#获取 救济
{
}
message get_relief_msg_res
{
optional uint32 relief_cnt = 20;//每日救济数量
}
message get_pet_turntable_reward_msg//1,0x0070c#获取 宠物转盘抽奖
{
}
message get_pet_turntable_reward_msg_res
{
optional uint32 id = 3;//抽中的宠物ID
}
message get_pet_turntable_msg//1,0x0070d#获取 宠物转盘
{
optional uint32 star = 1;//钥匙星级
}
message get_pet_turntable_msg_res
{
repeated uint32 id = 3;//转盘上的宠物ID
}
////////////////////////////////////////////////
//事件[0x00800,0x008ff]
////////////////////////////////////////////////
message update_event_msg//1,0x0801#更新客户端事件
{
optional common_msg.event_t event = 1;
}
message update_event_msg_res
{
}
message get_event_msg//1,0x0802#获取客户端事件
{
optional uint32 type = 1;//type
optional uint64 id = 2;//id
}
message get_event_msg_res
{
optional common_msg.event_t event = 1;
}
////////////////////////////////////////////////
//邮件
////////////////////////////////////////////////
message notify_mail_msg//0,0x0901#通知邮件变化
{
}
message notify_mail_msg_res
{
optional share_msg.mail_t mail = 1;//邮件变更
}
message mail_attachment_msg//1,0x0902#领取邮件附件
{
optional uint32 idx = 1;//邮件序号
}
message mail_attachment_msg_res
{
}
message mail_read_msg//1,0x0903#读邮件
{
optional uint32 idx = 1;//邮件序号
}
message mail_read_msg_res
{
}
message mail_del_msg//1,0x0904#删除邮件
{
repeated uint32 idx = 1;//邮件序号
}
message mail_del_msg_res
{
repeated uint32 idx = 1;//邮件序号
}
message mail_give_msg//1,0x0905#赠送邮件
{
optional share_msg.mail_give_t give = 1;//赠送
optional uint64 recv_uid = 2;//接收用户ID
}
message mail_give_msg_res
{
}
message mail_share_private_give_msg//1,0x0906#分享(朋友/群)赠送邮件
{
}
message mail_share_private_give_msg_res
{
}
message mail_share_public_give_msg//1,0x0907#分享(朋友圈)赠送邮件
{
}
message mail_share_public_give_msg_res
{
}
message get_achievement_reward_msg//1,0x0908#领取成就达成奖励
{
optional uint32 type_id = 1;//成就ID
optional uint32 reward_id = 2;//奖励ID
}
message get_achievement_reward_msg_res
{
}
message notify_achievement_msg//0,0x0909#通知客户端成就更新
{
}
message notify_achievement_msg_res
{
repeated achievement_t achievement = 1;
}
////////////////////////////////////////////////
//lobby[0x01000,0x01fff]lobby相关消息
////////////////////////////////////////////////
message lobby_enter_msg//1,0x1000#进入大厅
{
repeated uint32 pet_id = 1;//参战的宠物ID
}
message lobby_enter_msg_res
{
}
message lobby_out_msg//1,0x1003#离开大厅
{
}
message lobby_out_msg_res
{
}
message notify_game_end_msg//0,0x1006#游戏结束
{
}
message notify_game_end_msg_res
{
optional share_msg.btl_t btl = 2;//战斗数据
optional uint32 add_money = 3;//增加的钱
optional int32 change_score = 4;//积分变化
optional uint32 add_exp = 5;//增加的exp
}
message get_btl_team_msg//1,0x1007#获取战队
{
}
message get_btl_team_msg_res
{
optional uint32 team_id = 1;//首发队伍ID
repeated share_msg.pet_team_t pet_team = 2;//队伍
}
message set_btl_team_msg//1,0x1008#设置战队
{
optional share_msg.pet_team_t pet_team = 1;//队伍
}
message set_btl_team_msg_res
{
}
message set_btl_team_id_msg//1,0x1009#设置 首发战队id
{
optional uint32 team_id = 1;//队伍ID
}
message set_btl_team_id_msg_res
{
}
////////////////////////////////////////////////
//系统[0x0f000,0x0f0ff]
////////////////////////////////////////////////
message sys_information_msg//1,0xf001#或取系统当前时间
{
}
message sys_information_msg_res
{
optional uint32 time_second = 1;//当前时间
}
message sys_new_day_msg//0,0xf002#新的一天通知包
{
}
message sys_new_day_msg_res
{
}
message sys_notice_msg//0,0xf003#通知玩家公告
{
}
message sys_notice_msg_res
{
optional share_msg.notice_t notice = 1;//公告
}
message sys_test_msg//1,0xf004#测试
{
}
message sys_test_msg_res
{
}
message gm_change_item_msg//1,0xf005#gm 调道具
{
optional uint32 id = 1;//id
optional int32 cnt = 2;//数量
}
message gm_change_item_msg_res
{
}
message sys_action_msg//1,0xf006#操作
{
optional uint32 event_id = 3;//事件ID
repeated uint32 expand_param = 4;//扩展参数,数组类型
}
message sys_action_msg_res
{
}