Commit 003912502b9da983fa9c33b1890f9830b625e21a
1 parent
43bf509f
feat: 增加上阵下阵协议,增加 IAgent接口,
删除一些无用日志 逻辑接口参数增加IAgent接口 增加IAgent接口的目的是为了在逻辑函数中可以获得和设置role数据
Showing
2 changed files
with
14 additions
and
8 deletions
Show diff stats
game.proto
| @@ -33,4 +33,8 @@ message RoleRsp { | @@ -33,4 +33,8 @@ message RoleRsp { | ||
| 33 | message UpdateRolePropertyRsp { | 33 | message UpdateRolePropertyRsp { |
| 34 | repeated int32 id = 1; | 34 | repeated int32 id = 1; |
| 35 | models.Role role = 2; | 35 | models.Role role = 2; |
| 36 | -} | ||
| 37 | \ No newline at end of file | 36 | \ No newline at end of file |
| 37 | +} | ||
| 38 | + | ||
| 39 | +message GoIntoBattleReq { | ||
| 40 | + repeated models.Team team = 1; | ||
| 41 | +} |
protocode.proto
| @@ -6,11 +6,13 @@ package protocode; | @@ -6,11 +6,13 @@ package protocode; | ||
| 6 | enum ProtoCode | 6 | enum ProtoCode |
| 7 | { | 7 | { |
| 8 | UNKNOWN = 0; | 8 | UNKNOWN = 0; |
| 9 | - HeartReq = 1; | ||
| 10 | - HeartRsp = 2; | ||
| 11 | - LoginReq = 3; | ||
| 12 | - CreateReq = 4; | ||
| 13 | - RoleRsp = 5; | ||
| 14 | - UpdateRolePropertyRsp = 6; | 9 | + LoginRsp = 1; |
| 10 | + HeartReq = 2; | ||
| 11 | + HeartRsp = 3; | ||
| 12 | + LoginReq = 4; | ||
| 13 | + CreateReq = 5; | ||
| 14 | + RoleRsp = 6; | ||
| 15 | + UpdateRolePropertyRsp = 7; | ||
| 16 | + GoIntoBattleReq = 8; | ||
| 15 | 17 | ||
| 16 | -} | ||
| 17 | \ No newline at end of file | 18 | \ No newline at end of file |
| 19 | +} | ||
| 18 | \ No newline at end of file | 20 | \ No newline at end of file |