|
@@ -101,40 +101,4 @@ enum Code {
|
|
|
ROOM_NOT_EXIST_ERR = 4; //房间已解散
|
|
|
JOIN_ROOM_REPEATEDLY_ERR = 5; //重复加入其他房间
|
|
|
PLAYER_ROOM_NOT_EXIST_ERR = 6; //玩家不在房间
|
|
|
-}
|
|
|
-
|
|
|
-message CardInfo {
|
|
|
- repeated int32 RemainCards = 1; // 玩家手牌
|
|
|
- int32 RemainCardsNum = 2; // 玩家手牌数量
|
|
|
-}
|
|
|
-
|
|
|
-message PlayerInfo {
|
|
|
- int64 Id = 1;
|
|
|
- string Name = 2;
|
|
|
- int32 Sex = 3;
|
|
|
- int64 Exp = 4;
|
|
|
- int32 Level = 5;
|
|
|
- int32 Vip = 6;
|
|
|
- int64 Diamond = 7; // 玩家携带钻石
|
|
|
- int32 Pos = 8; // 玩家位置(0东 1南 2西 3北)
|
|
|
- int32 State = 9; // 玩家状态(0未准备 1已准备 2游戏中 3结束)
|
|
|
- bool IsAuto = 10; // 是否托管
|
|
|
- CardInfo CardInfo = 11; // 玩家牌信息
|
|
|
-}
|
|
|
-
|
|
|
-message RoomInfo {
|
|
|
- int32 RoomId = 1; // 房间号
|
|
|
- int32 Type = 2; // 房间玩法类型 1:经典掼蛋
|
|
|
- int64 OwnerId = 3; // 房主playerId
|
|
|
- int32 State = 4; // 房间状态(0等待 1开局 2进行中 3已结束)
|
|
|
- int32 Time = 5; // 倒计时
|
|
|
- int32 CurRound = 6; // 当前局数
|
|
|
- int32 ZhuangPos = 7; // 先手位置
|
|
|
- int32 CardNum = 8; // 牌库剩余数量
|
|
|
- int64 OpId = 9; // 当前操作玩家id
|
|
|
- int32 OpPos = 10; // 当前操作玩家位置
|
|
|
- repeated int32 CurDisCardList = 11; // 当前出牌玩家打出的牌集合
|
|
|
- int32 CurDisCardSex = 12; // 当前出牌玩家性别
|
|
|
- PlayerInfo MyInfo = 13; // 自己数据
|
|
|
- repeated PlayerInfo OtherInfo = 14; // 其他玩家数据
|
|
|
}
|