From 003912502b9da983fa9c33b1890f9830b625e21a Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Wed, 6 Apr 2022 16:33:43 +0800 Subject: [PATCH] feat: 增加上阵下阵协议,增加 IAgent接口, --- game.proto | 6 +++++- protocode.proto | 16 +++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/game.proto b/game.proto index 60d4afa..f6e0e51 100644 --- a/game.proto +++ b/game.proto @@ -33,4 +33,8 @@ message RoleRsp { message UpdateRolePropertyRsp { repeated int32 id = 1; models.Role role = 2; -} \ No newline at end of file +} + +message GoIntoBattleReq { + repeated models.Team team = 1; +} diff --git a/protocode.proto b/protocode.proto index bcf3f8f..fad4cf4 100644 --- a/protocode.proto +++ b/protocode.proto @@ -6,11 +6,13 @@ package protocode; enum ProtoCode { UNKNOWN = 0; - HeartReq = 1; - HeartRsp = 2; - LoginReq = 3; - CreateReq = 4; - RoleRsp = 5; - UpdateRolePropertyRsp = 6; + LoginRsp = 1; + HeartReq = 2; + HeartRsp = 3; + LoginReq = 4; + CreateReq = 5; + RoleRsp = 6; + UpdateRolePropertyRsp = 7; + GoIntoBattleReq = 8; -} \ No newline at end of file +} \ No newline at end of file -- libgit2 0.21.2