更新playroom协议

This commit is contained in:
hahwu 2024-12-10 11:13:36 +08:00
parent 5912978063
commit 46c6158a0d
6 changed files with 169 additions and 2 deletions

Binary file not shown.

Binary file not shown.

BIN
config/Playroom.xlsx Normal file

Binary file not shown.

View File

@ -1031,6 +1031,7 @@ message ResBuyChessShop{
RES_CODE Code = 1;
string Msg = 2;
}
// 商店购买棋子
message ReqBuyChessShop2{
int32 Id = 1;
@ -1348,6 +1349,81 @@ message ItemNotify{
map<int32, int32> Item = 1; // 道具id =》 变化的数量
}
```
## playroom
```protobuf
message ReqPlayroom{} // 请求我的空间信息
message ResPlayroom{
int32 status = 1; // 状态
repeated ItemInfo Items = 2; // 触发式订单奖励
repeated RoomOpponent Opponent = 3; // 对手
repeated FriendRoom Friend = 4; // 好友
map<int32, int32> Playroom = 5; // 空间装饰 位置 =》 装饰id
repeated int32 collect = 6; // 已解锁的装饰
map<int32, int32> Mood = 7; // 心情 <位置, 心情>
}
message FriendRoom{
int32 Uid = 1;
string Name = 2;
int32 Face = 3;
int32 Avatar = 4;
int32 Times = 5; // 以你为目标的次数
}
message RoomOpponent{
int32 Uid = 1;
string Name = 2;
int32 Face = 3;
int32 Avatar = 4;
int32 LastTime = 5; // 上次被攻击时间
}
// 请求拜访空间信息
message ReqPlayroomInfo{
int32 Uid = 1;
}
message ResPlayroomInfo{
int32 Uid = 1;
string name = 2;
int32 Face = 3;
int32 Avatar = 4;
map<int32, int32> Playroom = 5; // 空间装饰 位置 =》 装饰id
int32 GameId = 6; // 游戏id
map<int32, ItemInfo> Items = 7; // 游戏奖励
int32 Status = 8; // 状态
}
message ReqPlayroomGame{
int32 Type = 1; // 1:绿色 2黄色 3红色
}
message ReqPlayroomInteract{
int32 Id = 1; // 互动类型
int32 Type = 2; // 1 消耗道具1 2 消耗道具2
}
message ResPlayroomInteract{
RES_CODE Code = 1;
string Msg = 2;
}
message ReqPlayroomSetRoom{
int32 Id = 1; // 装饰id
int32 Pos = 2; // 位置
}
message ReqPlayroomSetRoom{
RES_CODE Code = 1;
string Msg = 2;
}
```
## 后台

View File

@ -3350,4 +3350,74 @@ message ReqRaceReward{}
message ResRaceReward{
RES_CODE Code = 1;
string Msg = 2;
}
}
message ReqPlayroom{} //
message ResPlayroom{
int32 status = 1; //
repeated ItemInfo Items = 2; //
repeated RoomOpponent Opponent = 3; //
repeated FriendRoom Friend = 4; //
map<int32, int32> Playroom = 5; // = id
repeated int32 collect = 6; //
map<int32, int32> Mood = 7; // <, >
}
message FriendRoom{
int32 Uid = 1;
string Name = 2;
int32 Face = 3;
int32 Avatar = 4;
int32 Times = 5; //
}
message RoomOpponent{
int32 Uid = 1;
string Name = 2;
int32 Face = 3;
int32 Avatar = 4;
int32 LastTime = 5; //
}
// 访
message ReqPlayroomInfo{
int32 Uid = 1;
}
message ResPlayroomInfo{
int32 Uid = 1;
string name = 2;
int32 Face = 3;
int32 Avatar = 4;
map<int32, int32> Playroom = 5; // = id
int32 GameId = 6; // id
map<int32, ItemInfo> Items = 7; //
int32 Status = 8; //
}
message ReqPlayroomGame{
int32 Type = 1; // 1:绿 2 3
}
message ReqPlayroomInteract{
int32 Id = 1; //
int32 Type = 2; // 1 1 2 2
}
message ResPlayroomInteract{
RES_CODE Code = 1;
string Msg = 2;
}
message ReqPlayroomSetRoom{
int32 Id = 1; // id
int32 Pos = 2; //
}
message ReqPlayroomSetRoom{
RES_CODE Code = 1;
string Msg = 2;
}

View File

@ -8,7 +8,7 @@
"out_file": "MergeData.json",
"key": "Id",
"sheet_name" :"MergeData",
"fields" :["Id", "Icon", "Lv", "MaxLv", "MergeId", "SellType", "SellNum", "SellDiamond", "CoolTime", "Star", "Type", "Emit_Product", "Product_Type", "Color", "Emit_ID", "PType"]
"fields" :["Id", "Icon", "Lv", "MaxLv", "MergeId", "SellType", "SellNum", "SellDiamond", "CoolTime", "Star", "Type", "Emit_Product", "Product_Type", "Color", "Emit_ID", "PType", "Emit_Min_Lv"]
},
{
"in_file": "MergeData.xlsx",
@ -422,6 +422,27 @@
"key": "Id",
"sheet_name" :"Pass",
"fields" :["Num", "Need"]
},
{
"in_file": "Playroom.xlsx",
"out_file": "PlayroomConst.json",
"key": "Key",
"sheet_name" :"Const",
"fields" :["Value"]
},
{
"in_file": "Playroom.xlsx",
"out_file": "PlayroomDecorate.json",
"key": "Id",
"sheet_name" :"Decorate",
"fields" :["TypeEnum"]
},
{
"in_file": "Playroom.xlsx",
"out_file": "PlayroomMood.json",
"key": "Id",
"sheet_name" :"Mood",
"fields" :["Type", "Cost", "Cost2", "Effect"]
}
]
}