From 5ec8cc651d22bd192e562058d701b05918a3bec9 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Tue, 10 May 2022 15:34:17 +0800 Subject: [PATCH] fix: 记录战斗 --- game.proto | 18 ++++++++++++++++++ models.proto | 5 ++++- protocode.proto | 7 +++++-- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/game.proto b/game.proto index d36cd12..d2f4aa8 100644 --- a/game.proto +++ b/game.proto @@ -62,6 +62,24 @@ message RoleClearItemsReq { int32 count = 2; } +message RoleStartBattleReq { + int32 chapter_id = 1; + int32 carbon_id = 2; +} + +message RoleEndBattleReq { + int32 chapter_id = 1; + int32 carbon_id = 2; + bool pass = 3; +} + +message RoleEndBattleRsp { + int32 role_level = 1; + int32 role_exp = 2; + models.Hero hero = 3; + string reward = 4; +} + //ResponseCmd EquipmentDelReq message EquipmentDelReq { string id = 1; diff --git a/models.proto b/models.proto index 60a53f8..07f63be 100644 --- a/models.proto +++ b/models.proto @@ -18,6 +18,7 @@ message Hero { int32 rein_count = 5; int32 rein_point = 6; string equipments = 7; //"id=type id1=type1" + int64 exp = 8; } message Equipment { @@ -53,7 +54,7 @@ message Role { string device = 3; string nick = 4; int32 level = 5; - int64 exp = 6; + int32 exp = 6; int64 hp = 7; int64 hp_max = 8; @@ -68,4 +69,6 @@ message Role { uint32 otherlimit = 18; uint32 jewelrylimit = 19; uint32 materiallimit = 20; + + map pass_chapters = 21; // 通关记录 } diff --git a/protocode.proto b/protocode.proto index 217131e..bb0382e 100644 --- a/protocode.proto +++ b/protocode.proto @@ -17,7 +17,10 @@ enum ProtoCode RoleUpdatePropertyRsp = 9; RoleUpdateItemsRsp = 10; RoleClearItemsReq = 11; - EquipmentDelReq = 12; - EquipmentAddRsp = 13; + RoleStartBattleReq = 12; + RoleEndBattleReq = 13; + RoleEndBattleRsp = 14; + EquipmentDelReq = 15; + EquipmentAddRsp = 16; } \ No newline at end of file -- libgit2 0.21.2