|
@@ -50,6 +50,7 @@ local proto_c2s =
|
50
|
50
|
}
|
51
|
51
|
|
52
|
52
|
# 创建房间
|
|
53
|
+ # 创建成功后 - 在线玩家收到 on_room_new
|
53
|
54
|
room_create_room 2601 {
|
54
|
55
|
request {
|
55
|
56
|
playCount 0: integer # 战斗人数
|
|
@@ -62,6 +63,7 @@ local proto_c2s =
|
62
|
63
|
}
|
63
|
64
|
|
64
|
65
|
# 进入房间
|
|
66
|
+ # 成功 - 在线玩家收到 on_room_player_change
|
65
|
67
|
room_player_enter 2602 {
|
66
|
68
|
request {
|
67
|
69
|
roomId 0: integer # 房间号码
|
|
@@ -74,6 +76,7 @@ local proto_c2s =
|
74
|
76
|
|
75
|
77
|
# 坐下 - 点座位的时候可以不用 room_player_enter
|
76
|
78
|
# 异步通知结果 on_room_seat_down
|
|
79
|
+ # 成功 - 在线玩家收到 on_room_player_change
|
77
|
80
|
room_player_seat 2603 {
|
78
|
81
|
request {
|
79
|
82
|
roomId 0: integer # 房间号码
|
|
@@ -85,6 +88,7 @@ local proto_c2s =
|
85
|
88
|
}
|
86
|
89
|
|
87
|
90
|
# 站起
|
|
91
|
+ # 成功 - 在线玩家收到 on_room_player_change
|
88
|
92
|
room_stand_up 2604 {
|
89
|
93
|
request {
|
90
|
94
|
}
|
|
@@ -94,6 +98,7 @@ local proto_c2s =
|
94
|
98
|
}
|
95
|
99
|
|
96
|
100
|
# 离开房间
|
|
101
|
+ # 成功 - 在线玩家收到 on_room_player_change
|
97
|
102
|
room_player_leave 2605 {
|
98
|
103
|
request {
|
99
|
104
|
}
|
|
@@ -132,14 +137,14 @@ local proto_s2c =
|
132
|
137
|
}
|
133
|
138
|
}
|
134
|
139
|
|
135
|
|
- # 销毁房间
|
|
140
|
+ # 销毁房间 - 1. 创建超时 2. 游戏结束
|
136
|
141
|
on_room_destroy 2601 {
|
137
|
142
|
request {
|
138
|
143
|
roomId 0: integer # 房间ID
|
139
|
144
|
}
|
140
|
145
|
}
|
141
|
146
|
|
142
|
|
- # 所在好友房成员改变推送
|
|
147
|
+ # 房间玩家信息变化
|
143
|
148
|
on_room_player_change 2602 {
|
144
|
149
|
request {
|
145
|
150
|
type 0: integer # 消息的类型 [房间成员变化 100进入, 101离开, 102坐下 103站起,104强制站起, 105被踢出]
|
|
@@ -148,7 +153,7 @@ local proto_s2c =
|
148
|
153
|
}
|
149
|
154
|
}
|
150
|
155
|
|
151
|
|
- # 进入房间结果
|
|
156
|
+ # 坐下房间位置结果
|
152
|
157
|
on_room_seat_down 2603 {
|
153
|
158
|
request {
|
154
|
159
|
code 0: integer # 错误码
|