|
@@ -26,6 +26,8 @@ import { MsgItems } from './common/MsgItems';
|
|
|
import { MsgMessage } from './common/MsgMessage';
|
|
|
import { ReqEpsInfo, ResEpsInfo } from './eps/PtlEpsInfo';
|
|
|
import { MsgEpsChange_s } from './eps/server/MsgEpsChange_s';
|
|
|
+import { ReqFightTest, ResFightTest } from './fight/PtlFightTest';
|
|
|
+import { ReqHcEmit, ResHcEmit } from './hc/PtlHcEmit';
|
|
|
import { ReqHcInfo, ResHcInfo } from './hc/PtlHcInfo';
|
|
|
import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
|
|
|
import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
|
|
@@ -41,7 +43,6 @@ import { ReqPlayerLogin, ResPlayerLogin } from './player/PtlPlayerLogin';
|
|
|
import { ReqTaskInfo, ResTaskInfo } from './task/PtlTaskInfo';
|
|
|
import { ReqTaskRwd, ResTaskRwd } from './task/PtlTaskRwd';
|
|
|
import { MsgTaskCons_s } from './task/server/MsgTaskCons_s';
|
|
|
-import { ReqUserFight, ResUserFight } from './user/PtlUserFight';
|
|
|
import { ReqUserLogin, ResUserLogin } from './user/PtlUserLogin';
|
|
|
import { ReqUserNotices, ResUserNotices } from './user/PtlUserNotices';
|
|
|
import { ReqUserSetName, ResUserSetName } from './user/PtlUserSetName';
|
|
@@ -146,6 +147,14 @@ export interface ServiceType {
|
|
|
req: ReqEpsInfo,
|
|
|
res: ResEpsInfo
|
|
|
},
|
|
|
+ "fight/FightTest": {
|
|
|
+ req: ReqFightTest,
|
|
|
+ res: ResFightTest
|
|
|
+ },
|
|
|
+ "hc/HcEmit": {
|
|
|
+ req: ReqHcEmit,
|
|
|
+ res: ResHcEmit
|
|
|
+ },
|
|
|
"hc/HcInfo": {
|
|
|
req: ReqHcInfo,
|
|
|
res: ResHcInfo
|
|
@@ -194,10 +203,6 @@ export interface ServiceType {
|
|
|
req: ReqTaskRwd,
|
|
|
res: ResTaskRwd
|
|
|
},
|
|
|
- "user/UserFight": {
|
|
|
- req: ReqUserFight,
|
|
|
- res: ResUserFight
|
|
|
- },
|
|
|
"user/UserLogin": {
|
|
|
req: ReqUserLogin,
|
|
|
res: ResUserLogin
|
|
@@ -227,7 +232,7 @@ export interface ServiceType {
|
|
|
}
|
|
|
|
|
|
export const serviceProto: ServiceProto<ServiceType> = {
|
|
|
- "version": 55,
|
|
|
+ "version": 56,
|
|
|
"services": [
|
|
|
{
|
|
|
"id": 39,
|
|
@@ -437,6 +442,22 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|
|
"type": "msg"
|
|
|
},
|
|
|
{
|
|
|
+ "id": 86,
|
|
|
+ "name": "fight/FightTest",
|
|
|
+ "type": "api",
|
|
|
+ "conf": {
|
|
|
+ "connet": "ws"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 87,
|
|
|
+ "name": "hc/HcEmit",
|
|
|
+ "type": "api",
|
|
|
+ "conf": {
|
|
|
+ "connet": "ws"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
"id": 66,
|
|
|
"name": "hc/HcInfo",
|
|
|
"type": "api",
|
|
@@ -548,14 +569,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|
|
"type": "msg"
|
|
|
},
|
|
|
{
|
|
|
- "id": 68,
|
|
|
- "name": "user/UserFight",
|
|
|
- "type": "api",
|
|
|
- "conf": {
|
|
|
- "connet": "ws"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
"id": 61,
|
|
|
"name": "user/UserLogin",
|
|
|
"type": "api",
|
|
@@ -1197,6 +1210,240 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "fight/PtlFightTest/ReqFightTest": {
|
|
|
+ "type": "Interface"
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/ResFightTest": {
|
|
|
+ "type": "Interface",
|
|
|
+ "properties": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "name": "fightStart",
|
|
|
+ "type": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/FightStart"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "win",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "log",
|
|
|
+ "type": {
|
|
|
+ "type": "Interface",
|
|
|
+ "indexSignature": {
|
|
|
+ "keyType": "String",
|
|
|
+ "type": {
|
|
|
+ "type": "Array",
|
|
|
+ "elementType": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/fightLogOne"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/FightStart": {
|
|
|
+ "type": "Interface",
|
|
|
+ "properties": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "name": "from",
|
|
|
+ "type": {
|
|
|
+ "type": "String"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "seed",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "teams",
|
|
|
+ "type": {
|
|
|
+ "type": "Interface",
|
|
|
+ "indexSignature": {
|
|
|
+ "keyType": "String",
|
|
|
+ "type": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/FightTeam"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/FightTeam": {
|
|
|
+ "type": "Interface",
|
|
|
+ "properties": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "name": "fid",
|
|
|
+ "type": {
|
|
|
+ "type": "String"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "seat",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "eps",
|
|
|
+ "type": {
|
|
|
+ "type": "Interface",
|
|
|
+ "indexSignature": {
|
|
|
+ "keyType": "String",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/fightLogOne": {
|
|
|
+ "type": "Interface",
|
|
|
+ "properties": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "name": "aType",
|
|
|
+ "type": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/ActionType"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "seat",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "atker",
|
|
|
+ "type": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/fightLogOneData"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 3,
|
|
|
+ "name": "target",
|
|
|
+ "type": {
|
|
|
+ "type": "Array",
|
|
|
+ "elementType": {
|
|
|
+ "type": "Reference",
|
|
|
+ "target": "fight/PtlFightTest/fightLogOneData"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/ActionType": {
|
|
|
+ "type": "Enum",
|
|
|
+ "members": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "value": "wu"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "value": "0"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "value": "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 3,
|
|
|
+ "value": "2"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 4,
|
|
|
+ "value": "3"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 5,
|
|
|
+ "value": "999"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "fight/PtlFightTest/fightLogOneData": {
|
|
|
+ "type": "Interface",
|
|
|
+ "properties": [
|
|
|
+ {
|
|
|
+ "id": 0,
|
|
|
+ "name": "iid",
|
|
|
+ "type": {
|
|
|
+ "type": "String"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "hp",
|
|
|
+ "type": {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "buff",
|
|
|
+ "type": {
|
|
|
+ "type": "Array",
|
|
|
+ "elementType": {
|
|
|
+ "type": "Tuple",
|
|
|
+ "elementTypes": [
|
|
|
+ {
|
|
|
+ "type": "String"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 3,
|
|
|
+ "name": "effect",
|
|
|
+ "type": {
|
|
|
+ "type": "Array",
|
|
|
+ "elementType": {
|
|
|
+ "type": "Tuple",
|
|
|
+ "elementTypes": [
|
|
|
+ {
|
|
|
+ "type": "String"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "Number"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "hc/PtlHcEmit/ReqHcEmit": {
|
|
|
+ "type": "Interface"
|
|
|
+ },
|
|
|
+ "hc/PtlHcEmit/ResHcEmit": {
|
|
|
+ "type": "Interface"
|
|
|
+ },
|
|
|
"hc/PtlHcInfo/ReqHcInfo": {
|
|
|
"type": "Interface"
|
|
|
},
|
|
@@ -1958,234 +2205,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- "user/PtlUserFight/ReqUserFight": {
|
|
|
- "type": "Interface"
|
|
|
- },
|
|
|
- "user/PtlUserFight/ResUserFight": {
|
|
|
- "type": "Interface",
|
|
|
- "properties": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "name": "fightStart",
|
|
|
- "type": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/FightStart"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "name": "win",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "name": "log",
|
|
|
- "type": {
|
|
|
- "type": "Interface",
|
|
|
- "indexSignature": {
|
|
|
- "keyType": "String",
|
|
|
- "type": {
|
|
|
- "type": "Array",
|
|
|
- "elementType": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/fightLogOne"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "user/PtlUserFight/FightStart": {
|
|
|
- "type": "Interface",
|
|
|
- "properties": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "name": "from",
|
|
|
- "type": {
|
|
|
- "type": "String"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "name": "seed",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "name": "teams",
|
|
|
- "type": {
|
|
|
- "type": "Interface",
|
|
|
- "indexSignature": {
|
|
|
- "keyType": "String",
|
|
|
- "type": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/FightTeam"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "user/PtlUserFight/FightTeam": {
|
|
|
- "type": "Interface",
|
|
|
- "properties": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "name": "fid",
|
|
|
- "type": {
|
|
|
- "type": "String"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "name": "seat",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "name": "eps",
|
|
|
- "type": {
|
|
|
- "type": "Interface",
|
|
|
- "indexSignature": {
|
|
|
- "keyType": "String",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "user/PtlUserFight/fightLogOne": {
|
|
|
- "type": "Interface",
|
|
|
- "properties": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "name": "aType",
|
|
|
- "type": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/ActionType"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 3,
|
|
|
- "name": "seat",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "name": "atker",
|
|
|
- "type": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/fightLogOneData"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "name": "target",
|
|
|
- "type": {
|
|
|
- "type": "Array",
|
|
|
- "elementType": {
|
|
|
- "type": "Reference",
|
|
|
- "target": "user/PtlUserFight/fightLogOneData"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "user/PtlUserFight/ActionType": {
|
|
|
- "type": "Enum",
|
|
|
- "members": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "value": "wu"
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "value": "0"
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "value": "1"
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 3,
|
|
|
- "value": "2"
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 4,
|
|
|
- "value": "3"
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 5,
|
|
|
- "value": "999"
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "user/PtlUserFight/fightLogOneData": {
|
|
|
- "type": "Interface",
|
|
|
- "properties": [
|
|
|
- {
|
|
|
- "id": 0,
|
|
|
- "name": "iid",
|
|
|
- "type": {
|
|
|
- "type": "String"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 1,
|
|
|
- "name": "hp",
|
|
|
- "type": {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 2,
|
|
|
- "name": "buff",
|
|
|
- "type": {
|
|
|
- "type": "Array",
|
|
|
- "elementType": {
|
|
|
- "type": "Tuple",
|
|
|
- "elementTypes": [
|
|
|
- {
|
|
|
- "type": "String"
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "id": 3,
|
|
|
- "name": "effect",
|
|
|
- "type": {
|
|
|
- "type": "Array",
|
|
|
- "elementType": {
|
|
|
- "type": "Tuple",
|
|
|
- "elementTypes": [
|
|
|
- {
|
|
|
- "type": "String"
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "Number"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
"user/PtlUserLogin/ReqUserLogin": {
|
|
|
"type": "Interface",
|
|
|
"properties": [
|