huangjinghao 3 тижнів тому
батько
коміт
7fca3d1a6d
1 змінених файлів з 88 додано та 33 видалено
  1. 88 33
      protocol/msg_mys.json

+ 88 - 33
protocol/msg_mys.json

@@ -49,32 +49,38 @@
                 {
                     "rule": "optional",
                     "type": "WsMessageType",
-                    "name": "message_id",
+                    "name": "message_type",
                     "id": 1
                 },
                 {
                     "rule": "optional",
                     "type": "string",
-                    "name": "session_id",
+                    "name": "message_id",
                     "id": 2
                 },
                 {
                     "rule": "optional",
                     "type": "string",
-                    "name": "code",
+                    "name": "session_id",
                     "id": 3
                 },
                 {
                     "rule": "optional",
                     "type": "string",
-                    "name": "msg",
+                    "name": "code",
                     "id": 4
                 },
                 {
                     "rule": "optional",
                     "type": "string",
-                    "name": "data",
+                    "name": "msg",
                     "id": 5
+                },
+                {
+                    "rule": "optional",
+                    "type": "string",
+                    "name": "data",
+                    "id": 6
                 }
             ]
         },
@@ -92,69 +98,114 @@
                     }
                 },
                 {
-                    "rule": "optional",
-                    "type": "int32",
-                    "name": "gold_added",
-                    "id": 2,
-                    "options": {
-                        "default": 0
-                    }
+                    "rule": "repeated",
+                    "type": "MonsterVo",
+                    "name": "monsters",
+                    "id": 2
                 },
                 {
                     "rule": "optional",
-                    "type": "int32",
-                    "name": "gold_consumed",
+                    "type": "bool",
+                    "name": "battle_over",
                     "id": 3,
                     "options": {
-                        "default": 0
+                        "default": false
                     }
                 },
                 {
-                    "rule": "repeated",
-                    "type": "int64",
-                    "name": "monster_ids",
-                    "id": 4
+                    "rule": "optional",
+                    "type": "bool",
+                    "name": "is_fish_scheme",
+                    "id": 4,
+                    "options": {
+                        "default": false
+                    }
                 },
                 {
-                    "rule": "repeated",
-                    "type": "int64",
-                    "name": "reward_monster_ids",
-                    "id": 5
+                    "rule": "optional",
+                    "type": "bool",
+                    "name": "is_violent",
+                    "id": 5,
+                    "options": {
+                        "default": false
+                    }
                 },
                 {
                     "rule": "optional",
                     "type": "int32",
-                    "name": "current_gold_balance",
+                    "name": "scene_type",
                     "id": 6,
                     "options": {
-                        "default": 0
+                        "default": 1
                     }
                 },
+                {
+                    "rule": "repeated",
+                    "type": "CommonRequest",
+                    "name": "envelope",
+                    "id": 7
+                }
+            ]
+        },
+        {
+            "name": "MonsterVo",
+            "syntax": "proto2",
+            "fields": [
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "monsterId",
+                    "id": 1
+                },
+                {
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "type",
+                    "id": 2
+                },
                 {
                     "rule": "optional",
                     "type": "bool",
-                    "name": "battle_over",
-                    "id": 7,
+                    "name": "isKill",
+                    "id": 3,
                     "options": {
                         "default": false
                     }
+                }
+            ]
+        },
+        {
+            "name": "BattleRealTimeRequest",
+            "syntax": "proto2",
+            "fields": [
+                {
+                    "rule": "optional",
+                    "type": "WsMessageType",
+                    "name": "message_id",
+                    "id": 1,
+                    "options": {
+                        "default": "BATTLE_REAL_TIME_UPDATE"
+                    }
                 },
                 {
-                    "rule": "repeated",
-                    "type": "CommonRequest",
-                    "name": "envelope",
-                    "id": 8
+                    "rule": "optional",
+                    "type": "int32",
+                    "name": "magic_array_id",
+                    "id": 2,
+                    "options": {
+                        "default": 1
+                    }
                 }
             ]
         },
         {
-            "name": "BattleProgressResponse",
+            "name": "BattleResponse",
             "syntax": "proto2",
             "fields": [
                 {
                     "rule": "optional",
                     "type": "int32",
-                    "name": "current_gold_balance",
+                    "name": "new_balance",
                     "id": 1,
                     "options": {
                         "default": 0
@@ -436,6 +487,10 @@
                     "name": "UPGRADE_MAGIC_ARRAY",
                     "id": 2003
                 },
+                {
+                    "name": "BATTLE_REAL_TIME_UPDATE",
+                    "id": 2004
+                },
                 {
                     "name": "MAIL_NOTIFICATION",
                     "id": 3000