CommonProto_CS_10001.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. syntax = "proto3";
  2. package ET;
  3. message MoveInfo
  4. {
  5. repeated Unity.Mathematics.float3 Points = 1;
  6. Unity.Mathematics.quaternion Rotation = 2;
  7. int32 TurnSpeed = 3;
  8. }
  9. message UnitInfo
  10. {
  11. int64 UnitId = 1;
  12. int32 ConfigId = 2;
  13. int32 Type = 3;
  14. Unity.Mathematics.float3 Position = 4;
  15. Unity.Mathematics.float3 Forward = 5;
  16. map<int32, int64> KV = 6;
  17. MoveInfo MoveInfo = 7;
  18. }
  19. message ActInfo
  20. {
  21. int32 Card = 1; // 碰杠吃的牌,吃为顺子第一张
  22. int32 Type = 2; // 1.明杠(出牌杠) 2.回杠(碰完的牌杠) 3.暗杠(手牌直接杠) 4.碰 5.吃
  23. int64 PlayerId = 3; // 操作谁家的牌
  24. }
  25. message CardInfo
  26. {
  27. repeated int32 RemainCards = 1; // 玩家手牌
  28. int32 RemainCardsNum = 2; // 玩家手牌数量
  29. int32 DrawCard = 3; // 玩家摸的牌(只有摸牌人自己有)
  30. repeated int32 DisCards = 4; // 玩家打出的牌集合
  31. repeated ActInfo UsedInfo = 5; // 存储玩家吃碰杠集合
  32. repeated int32 Acts = 6; // 玩家可操作动作[吃 碰 杠 胡 过] 可操作为1 不可操作为0 eg:[1,1,1,1,1]
  33. repeated ActInfo ActInfo = 7; // 玩家可操作动作牌列表
  34. }
  35. message PlayerInfo
  36. {
  37. int64 id = 1;
  38. string name = 2;
  39. int32 sex = 3;
  40. int64 exp = 4;
  41. int32 level = 5;
  42. int32 vip = 6;
  43. int64 diamond = 7; // 玩家携带钻石
  44. int32 pos = 8; // 玩家位置(0东 1南 2西 3北)
  45. int32 state = 9; // 玩家状态(0未准备 1已准备 2游戏中 3结束)
  46. bool isAuto = 10; // 是否托管
  47. CardInfo cardInfo = 11; // 玩家牌信息
  48. }
  49. message RoomInfo
  50. {
  51. int32 RoomId = 1; // 房间号
  52. int32 Type = 2; // 房间玩法类型 1:黄冈晃晃
  53. int64 OwnerId = 3; // 房主playerId
  54. int32 State = 4; // 房间状态(0等待 1开局 2进行中 3已结束)
  55. int32 Time = 5; // 倒计时
  56. int32 CurRound = 6; // 当前局数
  57. int32 Rand1 = 7; // 骰子1
  58. int32 Rand2 = 8; // 骰子2
  59. int32 ZhuangPos = 9;
  60. int32 CardNum = 10; // 牌库剩余数量
  61. int64 OpId = 11; // 当前操作玩家id
  62. int32 OpPos = 12; // 当前操作玩家位置
  63. int32 CurDisCard = 13; // 当前出牌玩家打出的牌
  64. int32 CurDisCardSex = 14; // 当前出牌玩家性别
  65. PlayerInfo MyInfo = 15; // 自己数据
  66. repeated PlayerInfo OtherInfo = 16; // 其他玩家数据
  67. }