diff --git a/doc/game.md b/doc/game.md index f9e6eda..55b7b41 100644 --- a/doc/game.md +++ b/doc/game.md @@ -28,7 +28,14 @@ |2|角色不存在| |3|创建角色失败| -### 阵容变换 GoIntoBattleReq +### 阵容变换 ChangeTeamReq | errorCode 返回值| 描述 | | --- | --- | |2|未登录,角色不在内存中| + + +## 通知(服务器主动推送) + +### 角色信息修改 RoleUpdatePropertyRsp + +### 背包信息修改 RoleUpdateItemsRsp \ No newline at end of file diff --git a/game.proto b/game.proto index 5255f08..3933bef 100644 --- a/game.proto +++ b/game.proto @@ -26,22 +26,22 @@ message CreateReq { string device = 2; } +message ChangeTeamReq { + repeated models.Team team = 1; +} + message RoleRsp { models.Role role = 2; repeated models.Hero hero = 3; repeated models.Team team = 4; } -//ResponseCmd UpdateRolePropertyRsp -message UpdateRolePropertyRsp { +//ResponseCmd RoleUpdatePropertyRsp +message RoleUpdatePropertyRsp { repeated int32 id = 1; models.Role role = 2; } -message ChangeTeamReq { - repeated models.Team team = 1; -} - //ResponseCmd RoleUpdateItemsRsp message RoleUpdateItemsRsp{ string items = 1; diff --git a/protocode.proto b/protocode.proto index 3fdd944..63d7d6e 100644 --- a/protocode.proto +++ b/protocode.proto @@ -11,9 +11,9 @@ enum ProtoCode HeartRsp = 3; LoginReq = 4; CreateReq = 5; - RoleRsp = 6; - UpdateRolePropertyRsp = 7; - ChangeTeamReq = 8; + ChangeTeamReq = 6; + RoleRsp = 7; + RoleUpdatePropertyRsp = 8; RoleUpdateItemsRsp = 9; } \ No newline at end of file -- libgit2 0.21.2