---------------------------- 平台赛事 ------------------------ -- { cc.exports.OpcodeMatchBaseNoti = 7001 cc.exports.OpcodeMatchInfoNoti = 7002 -- cc.exports.OpcodeUserInfoNoti = 7003 cc.exports.OpcodeMatchErrorNoti = 7004 cc.exports.OpcodeUserScoreNoti = 7005 --算分通知,刷新排行榜 cc.exports.OpcodeMatchItemNoti = 7006 --对局后奖章变化 cc.exports.OpcodeThirdCreateNoti = 7053 -- "StatistIntoUserGet" : 7101, -- "StatistIntoUserAck" : 7102, -- "StatistIntoGameGet" : 7103, -- "StatistIntoGameAck" : 7104, cc.exports.OpcodeMatchListGet = 7105 cc.exports.OpcodeMatchListAck = 7106 cc.exports.OpcodeMatchRuleGet = 7107 cc.exports.OpcodeMatchRuleAck = 7108 cc.exports.OpcodeMotifyStatusGet = 7109 cc.exports.OpcodeMotifyStatusAck = 7110 cc.exports.OpcodeUserMatchInfoGet = 7111 cc.exports.OpcodeUserMatchInfoAck = 7112 cc.exports.OpcodeUserMatchRankGet = 7113 cc.exports.OpcodeUserMatchRankAck = 7114 cc.exports.OpcodeUserConfirmMatchGet = 7115 cc.exports.OpcodeUserConfirmMatchAck = 7116 cc.exports.OpcodeJoinedHistoryGet = 7117 cc.exports.OpcodeJoinedHistoryAck = 7118 cc.exports.OpcodeHistoryDetailGet = 7119 cc.exports.OpcodeHistoryDetailAck = 7120 cc.exports.OpcodeTeamMatchRankGet = 7123 cc.exports.OpcodeTeamMatchRankAck = 7124 cc.exports.OpcodeMatchGameIDsGet = 7125 cc.exports.OpcodeMatchGameIDsAck = 7126 cc.exports.OpcodeMatchAppIDsGet = 7129 cc.exports.OpcodeMatchAppIDsAck = 7130 cc.exports.OpcodeMatchRoundGet = 7131 cc.exports.OpcodeMatchRoundAck = 7132 cc.exports.OpcodePointHistoryGet = 7133 cc.exports.OpcodePointHistoryAck = 7134 cc.exports.OpcodePointBigRankGet = 7135 cc.exports.OpcodePointBigRankAck = 7136 cc.exports.OpcodePointJoinInfoGet = 7137 cc.exports.OpcodePointJoinInfoAck = 7138 cc.exports.OpcodePointRankListGet = 7139 cc.exports.OpcodePointRankListAck = 7140 cc.exports.OpcodePointGameSelectGet = 7143 cc.exports.OpcodePointGameSelectAck = 7144 cc.exports.OpcodePointTeamDayGet = 7145 cc.exports.OpcodePointTeamDayAck = 7146 cc.exports.OpcodeWebSdkConfigGet = 7601 cc.exports.OpcodeWebSdkConfigAck = 7602 cc.exports.OpcodeUserRedCashGet = 7701 cc.exports.OpcodeUserRedCashAck = 7702 cc.exports.OpcodeUserRedChangeGet = 7703 cc.exports.OpcodeUserRedChangeAck = 7704 cc.exports.OpcodeItemExChangeGet = 7705 cc.exports.OpcodeItemExChangeAck = 7706 -- "MotifyMatchGet" : 7801, -- "MotifyMatchAck" : 7802, -- "UploadCardGet" : 7803, -- "UploadCardAck" : 7804, -- "MotifyJudgeGet" : 7805, -- "MotifyJudgeAck" : 7806, cc.exports.OpcodeUploadGameResultGet = 7901 cc.exports.OpcodeUploadGameResultAck = 7902 -- "UploadGameRuleGet" : 7903, -- "UploadGameRuleAck" : 7904, -- [平台赛事] ----------->> -- sdk配置查询 G_EapProtos[OpcodeWebSdkConfigGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, AppID = {3, "sint32"}, } G_EapProtos["WebSdkConfigItem"] = { categoryId = {1, "sint32"}, paths = {2, "string", "repeated"}, appId = {3, "sint32"}, createTime = {4, "uint32"}, createIP = {5, "string"}, updateTime = {6, "uint32"}, } G_EapProtos[OpcodeWebSdkConfigAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 PID = {2, "sint32"}, AppID = {3, "sint32"}, -- 平台ID SdkConfig = {4, "WebSdkConfigItem", "repeated"}, } --玩家选择赛区 G_EapProtos[OpcodePointGameSelectGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, AppID = {3, "sint32"}, GameID = {4, "sint32"}, Type = {5, "sint32"}, -- 1:查找 2:修改 等 } G_EapProtos[OpcodePointGameSelectAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, Ticket = {3, "string"}, AppID = {4, "sint32"}, GameID = {5, "sint32"}, --选择的赛事 Type = {6, "sint32"}, } G_EapProtos["STMatchTime"] = { TimeStart = {1, "uint32"}, TimeEnd = {2, "uint32"}, } --赛事道具 G_EapProtos["STMatchItem"] = { ItemID = {1, "sint32"}, ItemNum = {2, "sint32"}, } --赛事奖励 G_EapProtos["STAwardInfo"] = { Begin = {1, "sint32"}, End = {2, "sint32"}, VecAwards = {3, "STMatchItem", "repeated"}, --repeated STMatchItem } --赛事报名&报名条件 G_EapProtos["STMatchJoin"] = { JoinType = {1, "sint32"}, --同时满足条件还是选择性条件 JoinItems = {2, "STMatchItem", "repeated"}, -- repeated STMatchItem } --赛事基本信息,作为赛事信息更新使用 G_EapProtos["STBaseInfo"] = { MatchID = {1, "string"}, --赛事ID ClubID = {2, "sint32"}, --俱乐部id JoinNum = {3, "sint32"}, --当前参赛人数 RoundCur = {4, "sint32"}, --当前轮数 该赛事总共需要进行的轮数设置 Status = {6, "sint32"}, --赛事状态 } --赛事列表, 需要一个赛事宣传图 G_EapProtos["STListItem"] = { MatchID = {1, "string"}, --赛事ID ServerID = {22, "sint32"}, --服务器ID StrName = {2, "string"}, --赛事名称 AppID = {3, "sint32"}, --所属应用 GameID = {4, "sint32"}, --所属游戏 ClubID = {5, "sint32"}, --ClubID MatchType = {6, "sint32"}, --赛事类型 MatchType JudgeName = {7, "string"}, --比赛裁判 LimitMax = {9, "sint32"}, --最高参赛人数 --json min, max 可配置最低和最高的参赛人数 LimitMin = {21, "sint32"}, --最低参赛人数 EntryRule = {10, "sint32"}, -- 参赛标准 EntryRule 可配置战队单人或战队双人模式 Status = {19, "sint32"}, --赛事状态 RoundMax = {11, "sint32"}, --轮数 该赛事总共需要进行的轮数设置 RoundCur = {20, "sint32"}, --当前轮数 该赛事总共需要进行的轮数设置 ReTime = {24, "uint32"}, --循环时间 ReMatch = {26, "sint32"}, --是否是循环赛 UpTime = {25, "uint32"}, --创建赛事时间 Proxy = {27, "sint32"}, --赛事优先级,用于展示 Logo = {28, "string"}, --logo下载地址 DownloadURL = {12, "string"}, --应用地址 VsData = {29, "sint32"}, --对局数据是否需要 SignTime = {13, "STMatchTime"}, --报名时间 --json 包含开始和截止 timeStart, timeEnd MatchTime = {14, "STMatchTime"}, --比赛时间 --json 包含开始和截止 timeStart, timeEnd JoinCost = {15, "STMatchJoin"}, --报名费 -- json 包含类型: 同时满足条件还是选择性条件 JoinLimit = {16, "STMatchJoin"}, --报名条件 -- json MatchInfo = {17, "STBaseInfo"}, --赛事基本信息 -- optional STBaseInfo MatchRule = {18, "STMatchRule"}, --赛事规则不一次性传输了,单独去获取 -- optional STMatchRule VecReLi = {30, "STMatchTime", "repeated"}, --热力时间段 } --赛事规则 G_EapProtos["STMatchRule"] = { MatchID = {1, "string"}, --规则ID --唯一索引 VecRules = {2, "STRuleInfo", "repeated"}, --游戏规则 --repeated STRuleInfo VecAwards = {3, "STAwardInfo", "repeated"}, --奖励信息 --repeated STAwardInfo VecRounds = {4, "STRoundInfo", "repeated"}, --赛制流程 --repeated STRoundInfo StrDes = {5, "string"}, --赛事描述 } --赛事每轮规则 G_EapProtos["STRoundInfo"] = { RoundMode = {1, "sint32"}, --赛制 赛制 分为瑞士移位、定局积分、单循环、打立出局、ASS打立出局 GameNum = {2, "sint32"}, --局数 在选定赛制中一轮中所需的局数 BaseScore = {3, "sint32"}, --初始分 比赛开始后每位用户所携带入桌的积分,仅在第1轮配置 Promotion = {4, "sint32"}, --晋级 可设定前多少名晋级,晋级人数填1即为决出冠军 TimeLimit = {5, "uint32"}, --标准时间 每轮比赛设定一个标准时间,如超过标准时间还未结束的比赛则强行结束 PlyNumLimit = {6, "sint32"}, --标准人数 每轮比赛设定一个开赛标准人数,如低于该人数的则比赛取消 CardMode = {7, "sint32"}, --卡牌类型 每轮比赛使用官方设定的牌进行对局,分为默认、同牌、固定牌 ###赛事玩家信息表中修改玩家数据 TimeStart = {8, "uint32"}, --每轮开始时间 ScoreRate = {9, "float"}, --补分 补分系数,填写系数后与底分相乘得到具体补分(详见异常处理逻辑) TakeRate = {10, "float"}, --携带分 第2轮及后续轮数可配置,为用户在第1轮结束后积分的比例携带至后续轮 MatchMode = {11, "sint32"}, --匹配 MatchMode 匹配逻辑分为固定、随机、高分对高分、高分对低分 ScoreOut = {12, "float"}, --淘汰分 打立出局及ASS打立出局专有的配置项,配置赛事初始淘汰分 ExtrInfo = {13, "string"}, --【打立专有】包含设定的时间内按照配置比例上涨底分和淘汰分及分桌规则 } -- 上传游戏规则 G_EapProtos["STRuleInfo"] = { Name = {1, "string"}, --规则名称 Value = {2, "string"}, --规则数,多个以逗号分隔 Type = {3, "string"}, --单选或多选、"Signle" or "Multi" Index = {4, "sint32"}, --显示顺序 } -- 比赛状态更新通知 G_EapProtos[OpcodeMatchBaseNoti] = { MatchInfo = {3, "STBaseInfo"}, --赛事基本信息 } -- 比赛详情更新通知 G_EapProtos[OpcodeMatchInfoNoti] = { OpeType = {1, "sint32"}, --赛事操作类型 MatchInfo = {2, "STListItem"}, --赛事详情信息 } -- -- 玩家赛事对局详情通知 -- G_EapProtos[OpcodeUserInfoNoti] = { -- UserInfo = {2, "STUserMatchInfo"}, --对局详情信息 -- } -- 算分服务器通知 G_EapProtos[OpcodeUserScoreNoti] = { MatchID = {1, "string"}, --赛事算分 Round = {2, "sint32"}, --计算的局数 CalType = {3, "sint32"}, --算分方式 CRet = {4, "sint32"}, --算分结果状态 } -- 赛事道具改变通知 G_EapProtos[OpcodeMatchItemNoti] = { MatchID = {1, "string"}, --赛事id OpeType = {2, "sint32"}, --操作类型 1:增加 2:删除 VecItems = {3, "STMatchItem", "repeated"}, --赛事道具 } -- 创建桌子信息通知 G_EapProtos["STCreateInfo"] = { nRet = {1, "sint32"}, --0:桌子创建成功 -1:桌子创建失败 TableID = {2, "string"}, --椅子号 StrErr = {3, "string"}, --错误描述 StrExtra = {4, "string"}, --json, 扩展信息: 需要转发第三方客户端的入桌数据等自定义信息 } -- 创建桌子返回信息;通过第一电竞将STCreateInfo.StrExtra转发给第三方客户端 G_EapProtos[OpcodeThirdCreateNoti] = { MatchID = {1, "string"}, --赛事编号 VecInfos = {2, "STCreateInfo"}, --创建的桌子信息 } -- 查询赛事信息 G_EapProtos[OpcodeMatchListGet] = { ClubID = {2, "sint32"}, -- 俱乐部id,有此值,查找对应俱乐部赛事 AppID = {3, "sint32"}, -- 第三方应用id -1:获取所有app的赛事 GameID = {4, "sint32"}, -- 获取对应appid+gameid的赛事 PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 } G_EapProtos[OpcodeMatchListAck] = { nRet = {1, "sint32"}, ClubID = {2, "sint32"}, --俱乐部id AppID = {3, "sint32"}, -- 第三方应用id -1:获取所有app的赛事 GameID = {4, "sint32"}, -- 获取对应appid+gameid的赛事 PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 VecMatch = {7, "STListItem", "repeated"}, -- repeated STListItem Count = {8, "sint32"}, --赛事总数 } -- 获取比赛规则 G_EapProtos[OpcodeMatchRuleGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, MatchID = {3, "string"}, } G_EapProtos[OpcodeMatchRuleAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 MatchRule = {2, "STMatchRule"}, --赛事规则 } -- 获取进行中的赛事玩家详情,可用于赛事列表获取后,某个赛事玩家对应的信息 G_EapProtos["STUserMatchInfo"] = { MatchID = {1, "string"}, -- 赛事ID PID = {9, "sint32"}, -- 玩家id TeamID = {2, "sint32"}, -- 战队编号 TeamType = {11, "sint32"}, -- 战队类型 --0普通战队 1临时战队 GameNumCur = {5, "sint32"}, -- 当前局数 在选定赛制中一轮中所需的局数 Score = {3, "float"}, -- 分数 ScoreExtra = {4, "float"}, -- 独立初始分 为指定选手配置的独立初始分,可每轮进行配置 ###赛事玩家信息表中修改玩家数据 Status = {6, "sint32"}, -- 玩家状态, 和赛事状态公用定义MATCH_STATUS RoundCur = {7, "sint32"}, -- 当前轮数 Rank = {10, "sint32"}, -- 排名 UpTime = {8, "uint32"}, -- 最后一次对局完成时间,可能用于排名 ThirdID = {13, "string"}, -- 第三方账号,用于通知配桌 VecAwards = {12, "STMatchItem", "repeated"}, -- 奖励信息 --repeated STMatchItem --积分赛 Prime = {21, "float"}, --当天赛事原始分 Calcu = {22, "float"}, --当天定时核算分 Limit = {23, "sint32"}, --需要的局数 Days = {24, "sint32"}, --游戏天数 DayTime = {25, "sint32"}, --最后天数数据,格式yyyymmdd:20001112 AppID = {27, "sint32"}, AllNum = {28, "sint32"}, --积分赛总局数统计 ReNum = {29, "sint32"}, --热力局数统计 AllPrime = {30, "float"}, --总原始分统计 BlScore = {31, "float"}, --平均分 BlRank = {32, "sint32"}, --平均分排名 ReScore = {33, "float"}, --热力分 ReRank = {34, "sint32"}, --热力排名 AcScore = {35, "float"}, --活跃标准分 AcRank = {36, "sint32"}, --活跃排名 } G_EapProtos[OpcodeUserMatchInfoGet] = { PID = {1, "sint32"}, MatchID = {2, "string"}, --MatchID=0,获取玩家参加的所有赛事 StrTicket = {3, "string"}, } G_EapProtos[OpcodeUserMatchInfoAck] = { nRet = {1, "sint32"}, MatchID = {2, "string"}, UserInfo = {3, "STUserMatchInfo"}, VecUsers = {4, "STUserMatchInfo", "repeated"}, --repeated STUserMatchInfo } -- 赛事匹配阶段确认参加赛事,由sdk发送确认消息 G_EapProtos[OpcodeUserConfirmMatchGet] = { PID = {1, "sint32"}, MatchID = {2, "string"}, StrTicket = {3, "string"}, } G_EapProtos[OpcodeUserConfirmMatchAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, } -- 获取个人参加的所有赛事(正规平台赛事) G_EapProtos[OpcodeJoinedHistoryGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, TeamID = {5, "sint32"}, -- 以战队作为查询条件 PageNum = {3, "sint32"}, -- 数据分页页码 ItemNum = {4, "sint32"}, -- 单页数据数量 } G_EapProtos[OpcodeJoinedHistoryAck] = { nRet = {1, "sint32"}, PageNum = {2, "sint32"}, -- 数据分页页码 ItemNum = {3, "sint32"}, -- 单页数据数量 TeamID = {5, "sint32"}, -- 以战队作为查询条件 VecMatch = {4, "STUserMatchInfo", "repeated"}, } -- 获取赛事详情, 用于历史赛事的详细信息查询 G_EapProtos[OpcodeHistoryDetailGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, MatchID = {3, "string"}, } G_EapProtos[OpcodeHistoryDetailAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 MatchID = {2, "string"}, MatchInfo = {3, "STListItem"}, -- } -- 玩家战队排名 G_EapProtos["STRankTeam"] = { TeamID = {1, "sint32"}, MatchID = {2, "string"}, TeamType = {3, "sint32"}, Round = {4, "sint32"}, --轮数 Rank = {5, "sint32"}, Score = {6, "float"}, Finish = {8, "sint32"}, UpTime = {9, "uint32"}, --赛事时间 GameID = {10, "sint32"}, VecInfos = {7, "STUserMatchInfo", "repeated"}, --玩家的赛事信息 --repeated STUserMatchInfo } -- 获取战队排行榜 G_EapProtos[OpcodeTeamMatchRankGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, MatchID = {3, "string"}, TeamID = {8, "sint32"}, Round = {4, "sint32"}, PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 OpeType = {7, "sint32"}, -- 战队排名:0:战队排行 1:报名的战队,仅用于进行中的赛事 AckType = {9, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要 MemNum = {10, "sint32"}, -- 成员数量 } G_EapProtos[OpcodeTeamMatchRankAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, TeamID = {12, "sint32"}, Round = {4, "sint32"}, PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 VecTeams = {7, "STRankTeam", "repeated"}, --repeated STRankTeam OpeType = {8, "sint32"}, -- 战队排名:0:战队排行 1:报名的战队,仅用于进行中的赛事 AckType = {10, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要 MemNum = {11, "sint32"}, SelfInfo = {9, "STRankTeam"}, -- 战队自己的数据 } -- 获取赛事个人排行榜数据 G_EapProtos[OpcodeUserMatchRankGet] = { PID = {1, "sint32"}, MatchID = {2, "string"}, StrTicket = {3, "string"}, Round = {4, "sint32"}, PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 OpeType = {7, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要 } G_EapProtos[OpcodeUserMatchRankAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, Round = {4, "sint32"}, PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 SelfInfo = {7, "STUserMatchInfo"}, --玩家自己的排行榜数据 VecUsers = {8, "STUserMatchInfo", "repeated"}, --repeated STUserMatchInfo } -- 积分赛获取好友排行 G_EapProtos[OpcodePointRankListGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, MatchID = {3, "string"}, VecPIDs = {4, "uint32", "repeated"}, } G_EapProtos[OpcodePointRankListAck] = { nRet = {1, "sint32"}, MatchID = {2, "string"}, VecInfos = {3, "STUserMatchInfo", "repeated"}, --玩家的赛事信息 } -- 获取平台对应的游戏 G_EapProtos[OpcodeMatchGameIDsGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, AppID = {3, "sint32"}, -- 平台ID } G_EapProtos["InfoGameID"] = { appid = {1, "sint32"}, -- 平台ID id = {2, "sint32"}, -- gameid name = {3, "string"}, -- 游戏名称 iosUrl = {4, "string"}, -- ios下载地址 androidUrl = {5, "string"}, -- 安卓下载地址 iosTheme = {6, "string"}, -- ios跳转theme androidTheme = {7, "string"}, -- 安卓theme,后续可能是包名 } G_EapProtos[OpcodeMatchGameIDsAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 PID = {2, "sint32"}, AppID = {3, "sint32"}, -- 平台ID VecGameIDs = {4, "InfoGameID", "repeated"}, --repeated InfoGameID } G_EapProtos["MatchGameIDsAck"] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 PID = {2, "sint32"}, AppID = {3, "sint32"}, -- 平台ID VecGameIDs = {4, "InfoGameID", "repeated"}, --repeated InfoGameID } -- 获取所有的平台 G_EapProtos[OpcodeMatchAppIDsGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, GameIDs = {3, "sint32"}, --是否需要GameIDs,1则返回VecAppIDs } G_EapProtos["InfoAppID"] = { appid = {1, "sint32"}, -- 平台ID name = {2, "string"}, -- 游戏名称 status = {3, "sint32"}, -- ios下载地址 logos = {4, "string", "repeated"}, -- 应用logo popoutStartTime = {5, "uint32"}, --展示时间 popoutEndTime = {6, "uint32"}, --展示时间 } G_EapProtos[OpcodeMatchAppIDsAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 VecAppIDs = {2, "InfoAppID", "repeated"}, VecGameIDs = {3, "MatchGameIDsAck", "repeated"}, } -- 获取玩家参加的历史积分赛 G_EapProtos[OpcodePointHistoryGet] = { PID = {1, "sint32"}, AppID = {2, "sint32"}, TeamID = {3, "sint32"}, PageNum = {4, "sint32"}, -- 数据分页页码 ItemNum = {5, "sint32"}, -- 单页数据数量 } G_EapProtos[OpcodePointHistoryAck] = { nRet = {1, "sint32"}, AppID = {2, "sint32"}, TeamID = {3, "sint32"}, -- 以战队作为查询条件 PageNum = {4, "sint32"}, -- 数据分页页码 ItemNum = {5, "sint32"}, -- 单页数据数量 VecMatch = {6, "STUserMatchInfo", "repeated"}, } -- 积分赛排行榜获取 G_EapProtos[OpcodePointBigRankGet] = { PID = {1, "sint32"}, Secret = {2, "string"}, MatchID = {3, "string"}, PageNum = {4, "sint32"}, -- 数据分页页码 ItemNum = {5, "sint32"}, -- 单页数据数量 OpeType = {6, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要 RankType = {7, "sint32"}, -- 1:平均成绩排行 2:活跃排行-比赛局数 3:热力排行-热力局数 } G_EapProtos[OpcodePointBigRankAck] = { CRet = {1, "sint32"}, MatchID = {2, "string"}, PageNum = {3, "sint32"}, -- 数据分页页码 ItemNum = {4, "sint32"}, -- 单页数据数量 SelfInfo = {5, "STUserMatchInfo"}, -- 玩家自己的排行榜数据 VecInfos = {6, "STUserMatchInfo", "repeated"}, --玩家的赛事信息 RankType = {7, "sint32"}, -- 1:平均成绩排行 2:活跃排行-比赛局数 3:热力排行-热力局数 } -- 积分赛获取人数及对局数 G_EapProtos[OpcodePointJoinInfoGet] = { PID = {1, "sint32"}, Secret = {2, "string"}, MatchIDs = {3, "string", "repeated"}, } G_EapProtos["PointJoinItem"] = { MatchID = {1, "string"}, Count = {2, "sint32"}, --赛事参加人数 GameNum = {3, "sint32"}, --玩家参赛总数 } G_EapProtos[OpcodePointJoinInfoAck] = { nRet = {1, "sint32"}, VecNums = {3, "PointJoinItem", "repeated"}, --参赛总数 } -- 参加赛事 退出赛事 G_EapProtos[OpcodeMotifyStatusGet] = { PID = {1, "sint32"}, MatchID = {2, "string"}, StrTicket = {3, "string"}, TeamID = {4, "sint32"}, Type = {5, "sint32"}, -- 1:参加 2:退出 等 } G_EapProtos[OpcodeMotifyStatusAck] = { PID = {1, "sint32"}, nRet = {2, "sint32"}, -- 0:成功 其他:定义通用错误码 MatchID = {3, "string"}, TeamID = {4, "sint32"}, Type = {5, "sint32"}, TeamType = {6, "sint32"},--0普通战队 1临时战队 Members = {7, "sint32", "repeated"},--成员ID列表 --repeated sint32 } -- 玩家每局对局详情 G_EapProtos[OpcodeMatchRoundGet] = { PID = {1, "sint32"}, StrTicket = {2, "string"}, DestPID = {3, "sint32"}, -- 要查找的玩家记录 MatchID = {4, "string"}, PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 } G_EapProtos[OpcodeMatchRoundAck] = { nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码 MatchID = {2, "string"}, DestPID = {3, "sint32"}, -- 要查找的玩家记录 VecRounds = {4, "STInfoGame", "repeated"}, --每局对局详情 PageNum = {5, "sint32"}, -- 数据分页页码 ItemNum = {6, "sint32"}, -- 单页数据数量 } -- [赛事上报] G_EapProtos["STInfoGame"] = { --第三方忽略信息 PID = {1, "sint32"}, --玩家账号 MatchID = {2, "string"}, --赛事id Master = {3, "sint32"}, --大师分 GameID = {4, "sint32"}, --游戏id Round = {5, "sint32"}, --轮数 GameNum = {6, "sint32"}, --游戏局数 UpTime = {7, "uint32"}, --数据上传时间 CardType = {8, "string"}, --玩家最大牌型 MaxRate = {9, "sint32"}, --最大倍数 CardArray = {10, "string"},--玩家手牌 TimeCost = {21, "sint32"}, --游戏时间 VPScore = {22, "float"}, --vp总分 VPWin = {23, "float"}, --vp胜利总分 Chair1 = {11, "sint32"}, --椅子号1 Chair2 = {12, "sint32"}, --椅子号2 Chair3 = {13, "sint32"}, --椅子号3 Chair4 = {14, "sint32"}, --椅子号4 Pos1 = {15, "sint32"}, --顺位1 Pos2 = {16, "sint32"}, --顺位2 Pos3 = {17, "sint32"}, --顺位3 Pos4 = {18, "sint32"}, --顺位4 --上传数据类型A UniqueID = {41, "string"}, --桌子唯一值,积分赛为邀请码+局数 Win = {42, "sint32"}, --赢 Fail = {43, "sint32"}, --输 Tie = {44, "sint32"}, --平局 --上传数据类型B BaseScore = {71, "float"}, -- 底分 Score = {72, "float"}, --结算积分 VecScores = {73, "float", "repeated"}, -- 本桌所有玩家得分 ChairID = {74, "sint32"}, --椅子号 TimeCost = {75, "sint32"}, --游戏时间 Cost = {76, "sint32"}, --开放消耗房卡数 RoomID = {77, "string"}, --私房房号 TimeStart = {78, "uint32"}, --小局开始时间 TimeEnd = {79, "uint32"}, --小局结束时间 RoomStart = {80, "uint32"}, --房间开始 RoomEnd = {81, "uint32"}, --房间结束 --麻将数据类型A Feng = {101, "sint32"}, --圈风 Zhuang = {102, "sint32"}, --庄家 Ting = {103, "sint32"}, --是否已听牌 PaoHu = {105, "sint32"}, --玩家炮胡次数总计 ZiMo = {106, "sint32"}, --玩家自摸次数总计 DianPao = {107, "sint32"}, --玩家点炮次数总计 GangKai = {108, "sint32"}, --玩家杠开次数总计 Chi = {109, "sint32"}, --吃牌次数总计 Peng = {110, "sint32"}, --碰牌次数总计 Gang = {111, "sint32"}, --杠牌次数总计 MenQing = {112, "sint32"}, --门清 HaiDi = {113, "sint32"}, --海底捞月 --麻将数据类型B TingRate = {141, "sint32"}, --听牌倍数 TingRound = {142, "sint32"}, --听牌轮数 HuRate = {143, "sint32"}, --胡牌倍数 HuRound = {144, "sint32"}, --胡牌轮数 --麻将数据类型C CardHu = {181, "sint32"}, --胡的那一张牌 VecAn = {182, "sint32", "repeated"}, --暗杠牌 VecMing = {183, "sint32", "repeated"}, --暗杠牌 VecBu = {187, "sint32", "repeated"}, --暗杠牌 VecChi = {188, "sint32", "repeated"}, --吃牌 VecPeng = {189, "sint32", "repeated"}, --碰牌 } -- 上传游戏数据 G_EapProtos[OpcodeUploadGameResultGet] = { AppID = {1, "sint32"}, -- 应用ID ThirdID = {2, "string"}, -- 第三方唯一账号 MatchID = {3, "string"}, -- 赛事ID InfoGame = {8, "STInfoGame"}, -- 比赛当局具体数据 } G_EapProtos[OpcodeUploadGameResultAck] = { nRet = {1, "sint32"}, -- 0:正常 -1:参数异常 AppID = {2, "sint32"}, -- 应用ID ThirdID = {3, "string"}, -- 第三方唯一账号 MatchID = {4, "string"}, -- 比赛ID Error = {5, "string"}, -- 错误描述,如果有 } ---------------------------------------- 战队选拔赛 ---------------------------------------- -- 战队积分赛当天数据获取 G_EapProtos["PointTeamDayItem"] = { TeamID = {1, "sint32"}, DayTime = {2, "sint32"}, AllNum = {3, "sint32"}, AllScore = {4, "float"}, Members = {5, "STUserMatchInfo", "repeated"}, } G_EapProtos[OpcodePointTeamDayGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, MatchID = {3, "string"}, TeamID = {4, "sint32"}, PageNum = {5, "sint32"}, ItemNum = {6, "sint32"}, MemNum = {7, "sint32"}, --返回的成员数量;前四名 or 前10名 } G_EapProtos[OpcodePointTeamDayAck] = { nRet = {1, "sint32"}, MatchID = {2, "string"}, TeamID = {3, "sint32"}, PageNum = {4, "sint32"}, ItemNum = {5, "sint32"}, RankInfo = {6, "PointTeamDayItem", "repeated"}, } ---------------------------------------- 红包活动 ---------------------------------------- -- 红包获取 G_EapProtos["UserRedCashItem"] = { MatchID = {1, "string"}, PID = {2, "sint32"}, Type = {3, "sint32"}, Money = {4, "float"}, OpenTime = {5, "uint32"}, ChangeMoney = {6, "float"}, ChangeTime = {7, "uint32"}, ExchangeTime = {8, "uint32"}, --兑换时间,如果>0,表示已经兑换 Rank = {9, "uint32"}, } G_EapProtos[OpcodeUserRedCashGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, MatchID = {3, "string"}, } G_EapProtos[OpcodeUserRedCashAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, RedInfo = {4, "UserRedCashItem"}, } -- 红包详情 G_EapProtos[OpcodeUserRedChangeGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, MatchID = {3, "string"}, Type = {4, "sint32"}, --0=初始红包、1组局红包、2排名红包 PageNum = {5, "sint32"}, ItemNum = {6, "sint32"}, } G_EapProtos[OpcodeUserRedChangeAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, Type = {4, "sint32"}, --0=初始红包、1组局红包、2排名红包 PageNum = {5, "sint32"}, ItemNum = {6, "sint32"}, VecInfos = {7, "UserRedCashItem", "repeated"}, } -- 红包兑换 G_EapProtos[OpcodeItemExChangeGet] = { PID = {1, "sint32"}, Ticket = {2, "string"}, MatchID = {3, "string"}, Type = {4, "sint32"}, -- 1:红包 } G_EapProtos[OpcodeItemExChangeAck] = { nRet = {1, "sint32"}, PID = {2, "sint32"}, MatchID = {3, "string"}, Type = {4, "sint32"}, -- 1:红包 Money = {5, "float"}, -- 红包数 ItemNum = {6, "sint32"}, -- 兑换的数量 Error = {7, "string"}, -- 错误描述 }