更新协议

This commit is contained in:
hahwu 2024-12-11 12:20:00 +08:00
parent 271a3c4353
commit 6f515cfc48
2 changed files with 28 additions and 1 deletions

View File

@ -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<int32, ItemInfo> Items = 7; // 游戏奖励
int32 Status = 8; // 状态 0 未开始 1 选择奖励 2 已结束
bool defense = 9; // 是否有防御
map<int32, int32> 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{

View File

@ -3416,6 +3416,20 @@ message ResPlayroomInfo{
int32 GameId = 6; // id
map<int32, ItemInfo> Items = 7; //
int32 Status = 8; // 0 1 2
bool defense = 9; //
map<int32, int32> 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{