From 6f515cfc48e05a9b4fca11538332e311963c9e99 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makedown/optimization.md | 15 ++++++++++++++- proto/Gameapi.proto | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) 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{