diff --git a/doc/game.md b/doc/game.md index 28670c5..a65652c 100644 --- a/doc/game.md +++ b/doc/game.md @@ -43,9 +43,18 @@ | --- | --- | |3|装备未获得| +### 删除物品 RoleClearItemsReq +| errorCode 返回值| 描述 | +| --- | --- | +|3|删除失败| + +### 删除装备 EquipmentDelReq +| errorCode 返回值| 描述 | +| --- | --- | +|3|删除失败| + ## 通知(服务器主动推送) - 角色信息修改 RoleUpdatePropertyRsp - 物品信息修改 RoleUpdateItemsRsp - 添加装备 EquipmentAddRsp -- 删除装备 EquipmentDelRsp diff --git a/game.proto b/game.proto index 5295c70..4638c23 100644 --- a/game.proto +++ b/game.proto @@ -56,11 +56,16 @@ message RoleUpdateItemsRsp { string items = 1; } -//ResponseCmd EquipmentAddRsp -message EquipmentAddRsp { - models.Equipment equip = 1; +message RoleClearItemsReq{ + string id = 1; + int32 count = 2; } -message EquipmentDelRsp { +message EquipmentDelReq { string id = 1; } + +//ResponseCmd EquipmentAddRsp +message EquipmentAddRsp { + models.Equipment equip = 1; +} diff --git a/protocode.proto b/protocode.proto index b1627ce..217131e 100644 --- a/protocode.proto +++ b/protocode.proto @@ -16,7 +16,8 @@ enum ProtoCode RoleRsp = 8; RoleUpdatePropertyRsp = 9; RoleUpdateItemsRsp = 10; - EquipmentAddRsp = 11; - EquipmentDelRsp = 12; + RoleClearItemsReq = 11; + EquipmentDelReq = 12; + EquipmentAddRsp = 13; } \ No newline at end of file -- libgit2 0.21.2