diff --git a/game-server/config/clientProtos.ts b/game-server/config/clientProtos.ts index 156385155..a121b0309 100644 --- a/game-server/config/clientProtos.ts +++ b/game-server/config/clientProtos.ts @@ -158,9 +158,16 @@ module.exports = { "battle.normalBattleHandler.getBattleList": { "required uInt32 type": 1 }, - // "battle.normalBattleHandler.checkBattle": { + "battle.normalBattleHandler.checkBattle": { + "required uInt32 battleId": 1, + "repeated uInt32 heroes": 2 + }, + // "battle.normalBattleHandler.battleEnd": { // "required uInt32 battleId": 1, - // "repeated uInt32 heroes": 2 + // "required string battleCode": 2, + // "required uInt32 isSuccess": 3, + // "repeated uInt32 heroes": 4, + // "repeated uInt32 stars": 5 // }, "battle.dungeonBattleHandler.buyNum": { "required uInt32 count": 1 diff --git a/game-server/config/serverProtos.ts b/game-server/config/serverProtos.ts index b51fbceb1..4ac5bfd36 100644 --- a/game-server/config/serverProtos.ts +++ b/game-server/config/serverProtos.ts @@ -1,4 +1,50 @@ module.exports = { + "battle.normalBattleHandler.getBattleList": { + 'message Data': { + 'message BattleList': { + 'required uInt32 battleId': 1, + 'required uInt32 status': 2, + 'required uInt32 star': 3, + 'repeated uInt32 stars': 4, + 'required string scriptBefore': 5, + 'required string scriptAfter': 6, + }, + 'repeated BattleList list': 1 + }, + 'required string msg': 1, + 'required uInt32 code': 2, + 'required Data data': 3 + }, + // "battle.normalBattleHandler.checkBattle": { + // 'message Data': { + // "optional uInt32 battleId": 1, + // "optional string battleCode": 2, + // "optional uInt32 status": 3, + // "message DailyNum": { + // "optional uInt32 type": 1, + // "optional uInt32 count": 2, + // "optional uInt32 buyCount": 3 + // }, + // "optional DailyNum dailyNum": 4, + // "message TowerData": { + // "repeated uInt32 heroes": 1, + // "message WarStatus": { + // "required uInt32 warId": 1, + // "required boolean status": 2 + // }, + // "optional WarStatus warStatus": 2 + // }, + // "optional TowerData towerData": 5, + // "message DungeonNum": { + // "optional uInt32 battleCount": 1, + // "optional uInt32 buyCount": 2 + // }, + // "optional DungeonNum dungeonNum": 6 + // }, + // 'required string msg': 1, + // 'required uInt32 code': 2, + // 'optional Data data': 3 + // }, 'onChat': { 'required string msg': 1, 'required string from': 2, @@ -43,6 +89,14 @@ module.exports = { 'required uInt32 code': 2, 'required Data data': 3 }, + "onPushCurrentTime": { + "message Data": { + "required uInt32": 1 + }, + 'required string msg': 1, + 'required uInt32 code': 2, + 'required Data data': 3 + }, // 'onHeroSkinChange': { // 'message Data': { // "message SkinInfo": {