诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 rivejä
1.5 KiB

  1. syntax = "proto3";
  2. package RecordPacket;
  3. //每个协议的数据
  4. message pb_GameRecordPacket{
  5. uint32 wChairID = 1;
  6. uint32 wMainCmdID = 2;
  7. uint32 wSubCmdID = 3;
  8. bytes pData = 4;
  9. };
  10. message pb_GameConfig{
  11. uint32 wSubGameID = 1; // 30 翻财神 31 包麻将
  12. uint32 wDiScore = 2; //底分
  13. uint32 wFanFei = 3; //房费(0房间创建者,1打牌者平摊)
  14. uint32 wIpLimit = 4; //IP限制(0限制,1不限制);
  15. uint32 wPlayCountRule = 5; //一次玩的局数(8局?16局?)
  16. uint32 RoomId = 6; //房间ID
  17. uint32 IsOwner = 7; //是否房主
  18. uint32 wHadPlayCount = 8; //当前局数
  19. string sPrivateTableID = 9;
  20. uint32 bDuoLai = 10; //包麻将 使用此变量,作为是否计算 大牌分数
  21. uint32 wFengDing = 11; //封顶分数
  22. uint32 tmp1 = 12; //备用字段 //0,4人 | 1,,3人 |2,2人
  23. uint32 tmp2 = 13; //备
  24. };
  25. message pb_ChairRecord{
  26. uint32 wChairId = 1; //椅子号
  27. uint32 dwUserId = 2; //用户id
  28. string userName = 3;//用户名
  29. string headUrl = 4; //头像
  30. };
  31. //用户回放数据总体
  32. message PB_CS_S_ReplayRecordResp{
  33. uint32 m_UUID = 1; //回放唯一ID
  34. uint32 m_startTime = 3; //游戏开始时间
  35. uint32 m_endTime = 4; //游戏结束时间
  36. uint32 m_UserId = 5; //用户ID
  37. pb_GameConfig m_gameconfig = 6; //游戏基本配置
  38. repeated pb_ChairRecord m_chairList = 7; //游戏椅子玩家信息
  39. repeated pb_GameRecordPacket pRecordPacket = 8; //存储的所有pb_GameRecordPacket
  40. };