diff --git a/makedown/optimization.md b/makedown/optimization.md index 523536f0..1de73618 100644 --- a/makedown/optimization.md +++ b/makedown/optimization.md @@ -1404,7 +1404,6 @@ message RoomOpponent{ message ReqPlayroomInfo{ int32 Uid = 1; } - message ResPlayroomInfo{ int32 Uid = 1; string name = 2; @@ -1414,6 +1413,20 @@ message ResPlayroomInfo{ int32 GameId = 6; // 游戏id map Items = 7; // 游戏奖励 int32 Status = 8; // 状态 0 未开始 1 选择奖励 2 已结束 + bool defense = 9; // 是否有防御 + map flip = 10; // 翻牌 <位置, 牌> +} + +// 请求翻牌 +message ReqPlayroomFlip{ + int32 Id = 1; // 翻牌位置 +} + +message ResPlayroomFlip{ + RES_CODE Code = 1; + string Msg = 2; + int32 Id = 3; // 翻牌位置 + int32 CardId = 4; // 卡牌id } message ReqPlayroomGame{ diff --git a/proto/Gameapi.proto b/proto/Gameapi.proto index 3ecb8716..5da80627 100644 --- a/proto/Gameapi.proto +++ b/proto/Gameapi.proto @@ -3416,6 +3416,20 @@ message ResPlayroomInfo{ int32 GameId = 6; // 游戏id map Items = 7; // 游戏奖励 int32 Status = 8; // 状态 0 未开始 1 选择奖励 2 已结束 + bool defense = 9; // 是否有防御 + map flip = 10; // 翻牌 <位置, 牌> +} + +// 请求翻牌 +message ReqPlayroomFlip{ + int32 Id = 1; // 翻牌位置 +} + +message ResPlayroomFlip{ + RES_CODE Code = 1; + string Msg = 2; + int32 Id = 3; // 翻牌位置 + int32 CardId = 4; // 卡牌id } message ReqPlayroomGame{