xiaoyang0346 1 tuần trước cách đây
mục cha
commit
f3617d86a9
2 tập tin đã thay đổi với 58 bổ sung6 xóa
  1. 15 3
      s_to_proto/shared/hc/PtlHcInfo.ts
  2. 43 3
      s_to_proto/shared/serviceProto.ts

+ 15 - 3
s_to_proto/shared/hc/PtlHcInfo.ts

@@ -23,11 +23,23 @@ export interface HcInfoList {
 }
 
 export interface HcInfoGeziInfo {
-    type:number   //具体物品类型 0:无物品 1:发射器 2:怪物 3:装备 4:材料
-    unlock:number  //解锁状态 0关 1开
+    type:HcType   //具体物品类型 0:无物品 1:发射器 2:怪物 3:装备 4:材料
+    unlock:HcUnlock  //解锁状态
     correlationId:number  //物品ID
 }
-
+//具体物品类型
+export enum HcType {
+    wu = 0, //无物品
+    emitter = 1, //发射器
+    monster = 2, //怪物
+    equip = 3, //装备
+    material = 4, //材料
+}
+//解锁状态
+export enum HcUnlock {
+    off = 0, //关
+    on = 1, //开
+}
 
 export const conf = {
     connet: "ws"

+ 43 - 3
s_to_proto/shared/serviceProto.ts

@@ -161,7 +161,7 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 42,
+    "version": 43,
     "services": [
         {
             "id": 39,
@@ -993,14 +993,16 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "id": 0,
                     "name": "type",
                     "type": {
-                        "type": "Number"
+                        "type": "Reference",
+                        "target": "hc/PtlHcInfo/HcType"
                     }
                 },
                 {
                     "id": 1,
                     "name": "unlock",
                     "type": {
-                        "type": "Number"
+                        "type": "Reference",
+                        "target": "hc/PtlHcInfo/HcUnlock"
                     }
                 },
                 {
@@ -1012,6 +1014,44 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "hc/PtlHcInfo/HcType": {
+            "type": "Enum",
+            "members": [
+                {
+                    "id": 0,
+                    "value": 0
+                },
+                {
+                    "id": 1,
+                    "value": 1
+                },
+                {
+                    "id": 2,
+                    "value": 2
+                },
+                {
+                    "id": 3,
+                    "value": 3
+                },
+                {
+                    "id": 4,
+                    "value": 4
+                }
+            ]
+        },
+        "hc/PtlHcInfo/HcUnlock": {
+            "type": "Enum",
+            "members": [
+                {
+                    "id": 0,
+                    "value": 0
+                },
+                {
+                    "id": 1,
+                    "value": 1
+                }
+            ]
+        },
         "hc/PtlHcMerge/ReqHcMerge": {
             "type": "Interface",
             "properties": [