|
- ---
- -- ================================================================
- -- 文件名: xzddMessage.lua
- -- 描述: 继承自川南血战到底的协议
- -- 版权: Copyright © 2016-2019 公司名称 版权所有
- -- 作者: Administrator
- -- 创建日期: 2019-10-21
- -- 更新日期: 2019-10-21
- -- 备注:
- -- ================================================================
- --
- local message=MJFramework.MJFrameworkClassImprot("mj_xzdd.luaScript.Protocol.xzddMessage")
-
- -- --断线重连
- message.GameReconnection = defClass("GameReconnection"
- -- 用户房间号
- , defVar("gameId", VT_Short, 0)
- -- 用户房间号
- , defVar("nShowTableId", VT_Int, 0)
- -- 房间最大人数
- , defVar("nMaxPlayCount", VT_Int, 0)
- -- 用户房主
- , defVar("nRoomOwnedUid", VT_Int, 0)
- -- 总的局数
- , defVar("nTotalGameNum", VT_Short, 0)
- --底注
- , defVar("nBaseChips", VT_Int, 0)
- -- 游戏信息
- , defVar("strGameInfo", VT_String, "")
- -- 当前局数
- , defVar("nGameStartCount", VT_Short, 0)
- -- 游戏状态
- , defVar("nStatus", VT_UChar, 0)
- -- 庄家座位
- , defVar("nBankSeatId", VT_UChar, 0)
- -- 我的座位
- , defVar("nMySeatId", VT_UChar, 0)
-
- -- 是否有人发起解散
- , defVar("bUserDisbandGame", VT_UChar, 0)
- -- 解散剩余时间,没人发起解散,此值为0
- , defVar("nDismissStateTime", VT_Int, 0)
-
- -- 牌桌信息
- ,defVar("playerInfos", VT_VectorToMap(message.playerInfo, "nUserId"))
-
- -- --剩余的底牌
- ,defVar("leaveCards",VT_Vector(message.Card))
-
-
-
- --天胡的庄家\翻牌者\出牌者的seatId(可通过状态判断具体的角色)
- ,defVar("outCardUserId",VT_Int,0)
- --出牌者的seatId
- ,defVar("outCardSeatId",VT_UChar,255)
- --当前发的牌或者出的牌
- ,defVar("lastOpCard",VT_UChar,255)
- --操作列表
- ,defVar("operates",VT_Vector(message.OperateCard),{})
- --是否需要出牌 1需要 0不需要
- ,defVar("isNeedOutCard",VT_UChar,0)
- --游戏结束标志 0正常结束 7黄庄 8长时间自动解散 9解散游戏
- ,defVar("stopFlag",VT_UChar,255)
-
- --胡牌玩家列表
- ,defVar("resultInfos",VT_VectorToMap(message.PlayerResultInfo,"nUserId"))
-
- --操作统计 "diangang_cnt":1, //点杠次数 "mgang":1, //明杠次数 "bgang":1, //巴杠次数 "agang":1, //暗杠次数
- ,defVar("opsCntMapString",VT_String,"")
- --听牌状态
- ,defVar("tingStatus",VT_UChar,0)
- --听牌信息
- ,defVar("tingCard",VT_Vector(message.PushCard),{})
-
- --是否在快开始界面,1是0否
- ,defVar("bUserFastStartGame",VT_UChar,0)
- --当前快速开始等待时间
- ,defVar("leftFastStartGameTime",VT_Int,0)
- --快速开始状态
- ,defVar("pList", VT_Vector(message.FastPlayer), {})
-
- -- 爆牌信息
- ,defVar("playerBaoInfos", VT_VectorToMap(message.playerBaoInfo, "nUserId"))
-
- --洗牌消耗数量
- ,defVar("shuffleNum", VT_Int, 2)
- )
-
- return message
|