diff --git a/game.proto b/game.proto index 5c7a4c1..88d7569 100644 --- a/game.proto +++ b/game.proto @@ -102,8 +102,12 @@ message EquipmentAddRsp { models.Equipment equip = 1; } -//ResponseCmd HeroUpLevelReq +//ResponseCmd HeroUpLevelRsp message HeroUpLevelReq { string heroId = 1; string items = 2; // [itemId1=count1, itemId2=count2] +} + +message HeroUpLevelRsp { + models.Hero hero = 1; } \ No newline at end of file diff --git a/protocode.proto b/protocode.proto index 32dd200..98b4174 100644 --- a/protocode.proto +++ b/protocode.proto @@ -6,23 +6,27 @@ package protocode; enum ProtoCode { UNKNOWN = 0; - LoginRsp = 1; - HeartReq = 2; - HeartRsp = 3; - LoginReq = 4; - CreateReq = 5; - DisConnectRsp = 6; - ChangeTeamReq = 7; - HeroEquipReferReq = 8; - RoleRsp = 9; - RoleUpdatePropertyRsp = 10; - RoleUpdateItemsRsp = 11; - RoleClearItemsReq = 12; - RoleStartBattleReq = 13; - RoleEndBattleReq = 14; - RoleEndBattleRsp = 15; - EquipmentDelReq = 16; + + LoginRsp = 1; + HeartRpc = 2; + CreateRpc = 3; + ChangeTeamRpc = 4; + HeroEquipReferRpc = 5; + RoleClearItemsRpc = 6; + RoleStartBattleRpc = 7; + RoleEndBattleRpc = 8; + EquipmentDelRpc = 9; + HeroUpLevelRpc = 10; + + HeartRsp = 11; + DisConnectRsp = 12; + RoleRsp = 13; + RoleUpdatePropertyRsp = 14; + RoleUpdateItemsRsp = 15; + RoleEndBattleRsp = 16; EquipmentAddRsp = 17; - HeroUpLevelReq = 18; + HeroUpLevelRsp = 18; + + } \ No newline at end of file -- libgit2 0.21.2