room_lobby.proto
1.75 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
//room 处理 lobby 的消息
//syntax="proto3";
package room_lobby_msg;
import "share_msg.proto";
////////////////////////////////////////////////
//room[0x30000,0x3ffff]
////////////////////////////////////////////////
message game_start_msg//1,0x30000#游戏开始
{
optional uint32 room_id = 1;//房间ID
optional share_msg.room_data_t room_data = 2;//房间数据
optional uint32 base_money = 3;//底分
repeated share_msg.user_show_in_room_t user_show_in_room = 4;
optional uint32 room_type = 5;//房间类型 share_msg.E_ROOM_TYPE
}
message game_start_msg_res
{
}
message notify_game_end_msg//0,0x30001#游戏结束
{
}
message notify_game_end_msg_res
{
optional uint32 room_id = 1;//房间ID
optional share_msg.room_data_t room_data = 2;//房间数据
repeated share_msg.user_game_end_t user_game_end = 3;
optional share_msg.mail_xzdd_record_t xzdd = 101;
optional share_msg.mail_nn_record_t nn = 102;
}
message user_off_msg//1,0x30002#用户离开
{
}
message user_off_msg_res
{
}
message notify_reduce_item_msg//0,0x30003#减少道具
{
}
message notify_reduce_item_msg_res
{
optional uint32 room_id = 1;//房间ID
repeated share_msg.item_t items = 2;//物品
}
message notify_add_item_msg//0,0x30004#增加道具
{
}
message notify_add_item_msg_res
{
optional uint32 room_id = 1;//房间ID
repeated share_msg.item_t items = 2;//物品
}
message notify_change_state_msg//0,0x30005#改变状态(胡了,没钱认输.逃跑不扣钱)
{
}
message notify_change_state_msg_res
{
}
message update_item_msg//1,0x30006#更新道具
{
repeated share_msg.item_t items = 2;//物品
}
message update_item_msg_res
{
}
message notify_task_hu_msg//0,0x30007#胡
{
}
message notify_task_hu_msg_res
{
optional uint32 hu = 1;//0:点炮,1:自摸,2:没胡
}