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.

89 lines
2.7 KiB

  1. ---
  2. -- ================================================================
  3. -- 文件名: xzddMessage.lua
  4. -- 描述: 继承自川南血战到底的协议
  5. -- 版权: Copyright © 2016-2019 公司名称 版权所有
  6. -- 作者: Administrator
  7. -- 创建日期: 2019-10-21
  8. -- 更新日期: 2019-10-21
  9. -- 备注:
  10. -- ================================================================
  11. --
  12. local message=MJFramework.MJFrameworkClassImprot("mj_xzdd.luaScript.Protocol.xzddMessage")
  13. -- --断线重连
  14. message.GameReconnection = defClass("GameReconnection"
  15. -- 用户房间号
  16. , defVar("gameId", VT_Short, 0)
  17. -- 用户房间号
  18. , defVar("nShowTableId", VT_Int, 0)
  19. -- 房间最大人数
  20. , defVar("nMaxPlayCount", VT_Int, 0)
  21. -- 用户房主
  22. , defVar("nRoomOwnedUid", VT_Int, 0)
  23. -- 总的局数
  24. , defVar("nTotalGameNum", VT_Short, 0)
  25. --底注
  26. , defVar("nBaseChips", VT_Int, 0)
  27. -- 游戏信息
  28. , defVar("strGameInfo", VT_String, "")
  29. -- 当前局数
  30. , defVar("nGameStartCount", VT_Short, 0)
  31. -- 游戏状态
  32. , defVar("nStatus", VT_UChar, 0)
  33. -- 庄家座位
  34. , defVar("nBankSeatId", VT_UChar, 0)
  35. -- 我的座位
  36. , defVar("nMySeatId", VT_UChar, 0)
  37. -- 是否有人发起解散
  38. , defVar("bUserDisbandGame", VT_UChar, 0)
  39. -- 解散剩余时间,没人发起解散,此值为0
  40. , defVar("nDismissStateTime", VT_Int, 0)
  41. -- 牌桌信息
  42. ,defVar("playerInfos", VT_VectorToMap(message.playerInfo, "nUserId"))
  43. -- --剩余的底牌
  44. ,defVar("leaveCards",VT_Vector(message.Card))
  45. --天胡的庄家\翻牌者\出牌者的seatId(可通过状态判断具体的角色)
  46. ,defVar("outCardUserId",VT_Int,0)
  47. --出牌者的seatId
  48. ,defVar("outCardSeatId",VT_UChar,255)
  49. --当前发的牌或者出的牌
  50. ,defVar("lastOpCard",VT_UChar,255)
  51. --操作列表
  52. ,defVar("operates",VT_Vector(message.OperateCard),{})
  53. --是否需要出牌 1需要 0不需要
  54. ,defVar("isNeedOutCard",VT_UChar,0)
  55. --游戏结束标志 0正常结束 7黄庄 8长时间自动解散 9解散游戏
  56. ,defVar("stopFlag",VT_UChar,255)
  57. --胡牌玩家列表
  58. ,defVar("resultInfos",VT_VectorToMap(message.PlayerResultInfo,"nUserId"))
  59. --操作统计 "diangang_cnt":1, //点杠次数 "mgang":1, //明杠次数 "bgang":1, //巴杠次数 "agang":1, //暗杠次数
  60. ,defVar("opsCntMapString",VT_String,"")
  61. --听牌状态
  62. ,defVar("tingStatus",VT_UChar,0)
  63. --听牌信息
  64. ,defVar("tingCard",VT_Vector(message.PushCard),{})
  65. --是否在快开始界面,1是0否
  66. ,defVar("bUserFastStartGame",VT_UChar,0)
  67. --当前快速开始等待时间
  68. ,defVar("leftFastStartGameTime",VT_Int,0)
  69. --快速开始状态
  70. ,defVar("pList", VT_Vector(message.FastPlayer), {})
  71. -- 爆牌信息
  72. ,defVar("playerBaoInfos", VT_VectorToMap(message.playerBaoInfo, "nUserId"))
  73. --洗牌消耗数量
  74. ,defVar("shuffleNum", VT_Int, 2)
  75. )
  76. return message