Browse Source

roll房,增加我的房间信息

neo 2 years ago
parent
commit
06a775ca65
1 changed files with 16 additions and 0 deletions
  1. 16 0
      proto-lib/proto_roll.lua

+ 16 - 0
proto-lib/proto_roll.lua

@@ -6,6 +6,11 @@ local proto_struct =
6
             cv 1: integer                       # 条件值
6
             cv 1: integer                       # 条件值
7
         }
7
         }
8
 
8
 
9
+        # 结算
10
+        .DataRollPlayerSettle {
11
+            uid 0: integer                      # 玩家ID
12
+            items 1: *DataItem                  # 中奖物品列表
13
+        }
9
         # 房间信息
14
         # 房间信息
10
         .DataRoll {
15
         .DataRoll {
11
             roomId 0: integer                   # 房间号
16
             roomId 0: integer                   # 房间号
@@ -19,6 +24,7 @@ local proto_struct =
19
             conditions 8: *DataRollCondition    # 参与条件列表
24
             conditions 8: *DataRollCondition    # 参与条件列表
20
             itemIdList 9: *integer              # 奖励物品ID列表
25
             itemIdList 9: *integer              # 奖励物品ID列表
21
             signupPlayerList 10: *DataUserBaseInfo  # 报名玩家信息列表
26
             signupPlayerList 10: *DataUserBaseInfo  # 报名玩家信息列表
27
+            settleList 11: *DataRollPlayerSettle    # 玩家结算列表
22
         }
28
         }
23
 ]]
29
 ]]
24
 
30
 
@@ -43,6 +49,16 @@ local proto_c2s =
43
                 code 0: integer
49
                 code 0: integer
44
             }
50
             }
45
         }
51
         }
52
+
53
+        # 我参与的房间
54
+        roll_get_self_room_list 2802 {
55
+            request {
56
+            }
57
+            response {
58
+                code 0: integer
59
+                roomList 1: *DataRoll       # 房间信息列表
60
+            }
61
+        }
46
 ]]
62
 ]]
47
 
63
 
48
 local proto_s2c =
64
 local proto_s2c =