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.

757 lines
33 KiB

  1. ---------------------------- 平台赛事 ------------------------
  2. -- {
  3. cc.exports.OpcodeMatchBaseNoti = 7001
  4. cc.exports.OpcodeMatchInfoNoti = 7002
  5. -- cc.exports.OpcodeUserInfoNoti = 7003
  6. cc.exports.OpcodeMatchErrorNoti = 7004
  7. cc.exports.OpcodeUserScoreNoti = 7005 --算分通知,刷新排行榜
  8. cc.exports.OpcodeMatchItemNoti = 7006 --对局后奖章变化
  9. cc.exports.OpcodeThirdCreateNoti = 7053
  10. -- "StatistIntoUserGet" : 7101,
  11. -- "StatistIntoUserAck" : 7102,
  12. -- "StatistIntoGameGet" : 7103,
  13. -- "StatistIntoGameAck" : 7104,
  14. cc.exports.OpcodeMatchListGet = 7105
  15. cc.exports.OpcodeMatchListAck = 7106
  16. cc.exports.OpcodeMatchRuleGet = 7107
  17. cc.exports.OpcodeMatchRuleAck = 7108
  18. cc.exports.OpcodeMotifyStatusGet = 7109
  19. cc.exports.OpcodeMotifyStatusAck = 7110
  20. cc.exports.OpcodeUserMatchInfoGet = 7111
  21. cc.exports.OpcodeUserMatchInfoAck = 7112
  22. cc.exports.OpcodeUserMatchRankGet = 7113
  23. cc.exports.OpcodeUserMatchRankAck = 7114
  24. cc.exports.OpcodeUserConfirmMatchGet = 7115
  25. cc.exports.OpcodeUserConfirmMatchAck = 7116
  26. cc.exports.OpcodeJoinedHistoryGet = 7117
  27. cc.exports.OpcodeJoinedHistoryAck = 7118
  28. cc.exports.OpcodeHistoryDetailGet = 7119
  29. cc.exports.OpcodeHistoryDetailAck = 7120
  30. cc.exports.OpcodeTeamMatchRankGet = 7123
  31. cc.exports.OpcodeTeamMatchRankAck = 7124
  32. cc.exports.OpcodeMatchGameIDsGet = 7125
  33. cc.exports.OpcodeMatchGameIDsAck = 7126
  34. cc.exports.OpcodeMatchAppIDsGet = 7129
  35. cc.exports.OpcodeMatchAppIDsAck = 7130
  36. cc.exports.OpcodeMatchRoundGet = 7131
  37. cc.exports.OpcodeMatchRoundAck = 7132
  38. cc.exports.OpcodePointHistoryGet = 7133
  39. cc.exports.OpcodePointHistoryAck = 7134
  40. cc.exports.OpcodePointBigRankGet = 7135
  41. cc.exports.OpcodePointBigRankAck = 7136
  42. cc.exports.OpcodePointJoinInfoGet = 7137
  43. cc.exports.OpcodePointJoinInfoAck = 7138
  44. cc.exports.OpcodePointRankListGet = 7139
  45. cc.exports.OpcodePointRankListAck = 7140
  46. cc.exports.OpcodePointGameSelectGet = 7143
  47. cc.exports.OpcodePointGameSelectAck = 7144
  48. cc.exports.OpcodePointTeamDayGet = 7145
  49. cc.exports.OpcodePointTeamDayAck = 7146
  50. cc.exports.OpcodeWebSdkConfigGet = 7601
  51. cc.exports.OpcodeWebSdkConfigAck = 7602
  52. cc.exports.OpcodeUserRedCashGet = 7701
  53. cc.exports.OpcodeUserRedCashAck = 7702
  54. cc.exports.OpcodeUserRedChangeGet = 7703
  55. cc.exports.OpcodeUserRedChangeAck = 7704
  56. cc.exports.OpcodeItemExChangeGet = 7705
  57. cc.exports.OpcodeItemExChangeAck = 7706
  58. -- "MotifyMatchGet" : 7801,
  59. -- "MotifyMatchAck" : 7802,
  60. -- "UploadCardGet" : 7803,
  61. -- "UploadCardAck" : 7804,
  62. -- "MotifyJudgeGet" : 7805,
  63. -- "MotifyJudgeAck" : 7806,
  64. cc.exports.OpcodeUploadGameResultGet = 7901
  65. cc.exports.OpcodeUploadGameResultAck = 7902
  66. -- "UploadGameRuleGet" : 7903,
  67. -- "UploadGameRuleAck" : 7904,
  68. -- [平台赛事] ----------->>
  69. -- sdk配置查询
  70. G_EapProtos[OpcodeWebSdkConfigGet] = {
  71. PID = {1, "sint32"},
  72. Ticket = {2, "string"},
  73. AppID = {3, "sint32"},
  74. }
  75. G_EapProtos["WebSdkConfigItem"] = {
  76. categoryId = {1, "sint32"},
  77. paths = {2, "string", "repeated"},
  78. appId = {3, "sint32"},
  79. createTime = {4, "uint32"},
  80. createIP = {5, "string"},
  81. updateTime = {6, "uint32"},
  82. }
  83. G_EapProtos[OpcodeWebSdkConfigAck] = {
  84. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  85. PID = {2, "sint32"},
  86. AppID = {3, "sint32"}, -- 平台ID
  87. SdkConfig = {4, "WebSdkConfigItem", "repeated"},
  88. }
  89. --玩家选择赛区
  90. G_EapProtos[OpcodePointGameSelectGet] = {
  91. PID = {1, "sint32"},
  92. Ticket = {2, "string"},
  93. AppID = {3, "sint32"},
  94. GameID = {4, "sint32"},
  95. Type = {5, "sint32"}, -- 1:查找 2:修改 等
  96. }
  97. G_EapProtos[OpcodePointGameSelectAck] = {
  98. nRet = {1, "sint32"},
  99. PID = {2, "sint32"},
  100. Ticket = {3, "string"},
  101. AppID = {4, "sint32"},
  102. GameID = {5, "sint32"}, --选择的赛事
  103. Type = {6, "sint32"},
  104. }
  105. G_EapProtos["STMatchTime"] = {
  106. TimeStart = {1, "uint32"},
  107. TimeEnd = {2, "uint32"},
  108. }
  109. --赛事道具
  110. G_EapProtos["STMatchItem"] = {
  111. ItemID = {1, "sint32"},
  112. ItemNum = {2, "sint32"},
  113. }
  114. --赛事奖励
  115. G_EapProtos["STAwardInfo"] = {
  116. Begin = {1, "sint32"},
  117. End = {2, "sint32"},
  118. VecAwards = {3, "STMatchItem", "repeated"}, --repeated STMatchItem
  119. }
  120. --赛事报名&报名条件
  121. G_EapProtos["STMatchJoin"] = {
  122. JoinType = {1, "sint32"}, --同时满足条件还是选择性条件
  123. JoinItems = {2, "STMatchItem", "repeated"}, -- repeated STMatchItem
  124. }
  125. --赛事基本信息,作为赛事信息更新使用
  126. G_EapProtos["STBaseInfo"] = {
  127. MatchID = {1, "string"}, --赛事ID
  128. ClubID = {2, "sint32"}, --俱乐部id
  129. JoinNum = {3, "sint32"}, --当前参赛人数
  130. RoundCur = {4, "sint32"}, --当前轮数 该赛事总共需要进行的轮数设置
  131. Status = {6, "sint32"}, --赛事状态
  132. }
  133. --赛事列表, 需要一个赛事宣传图
  134. G_EapProtos["STListItem"] = {
  135. MatchID = {1, "string"}, --赛事ID
  136. ServerID = {22, "sint32"}, --服务器ID
  137. StrName = {2, "string"}, --赛事名称
  138. AppID = {3, "sint32"}, --所属应用
  139. GameID = {4, "sint32"}, --所属游戏
  140. ClubID = {5, "sint32"}, --ClubID
  141. MatchType = {6, "sint32"}, --赛事类型 MatchType
  142. JudgeName = {7, "string"}, --比赛裁判
  143. LimitMax = {9, "sint32"}, --最高参赛人数 --json min, max 可配置最低和最高的参赛人数
  144. LimitMin = {21, "sint32"}, --最低参赛人数
  145. EntryRule = {10, "sint32"}, -- 参赛标准 EntryRule 可配置战队单人或战队双人模式
  146. Status = {19, "sint32"}, --赛事状态
  147. RoundMax = {11, "sint32"}, --轮数 该赛事总共需要进行的轮数设置
  148. RoundCur = {20, "sint32"}, --当前轮数 该赛事总共需要进行的轮数设置
  149. ReTime = {24, "uint32"}, --循环时间
  150. ReMatch = {26, "sint32"}, --是否是循环赛
  151. UpTime = {25, "uint32"}, --创建赛事时间
  152. Proxy = {27, "sint32"}, --赛事优先级,用于展示
  153. Logo = {28, "string"}, --logo下载地址
  154. DownloadURL = {12, "string"}, --应用地址
  155. VsData = {29, "sint32"}, --对局数据是否需要
  156. SignTime = {13, "STMatchTime"}, --报名时间 --json 包含开始和截止 timeStart, timeEnd
  157. MatchTime = {14, "STMatchTime"}, --比赛时间 --json 包含开始和截止 timeStart, timeEnd
  158. JoinCost = {15, "STMatchJoin"}, --报名费 -- json 包含类型: 同时满足条件还是选择性条件
  159. JoinLimit = {16, "STMatchJoin"}, --报名条件 -- json
  160. MatchInfo = {17, "STBaseInfo"}, --赛事基本信息 -- optional STBaseInfo
  161. MatchRule = {18, "STMatchRule"}, --赛事规则不一次性传输了,单独去获取 -- optional STMatchRule
  162. VecReLi = {30, "STMatchTime", "repeated"}, --热力时间段
  163. }
  164. --赛事规则
  165. G_EapProtos["STMatchRule"] = {
  166. MatchID = {1, "string"}, --规则ID --唯一索引
  167. VecRules = {2, "STRuleInfo", "repeated"}, --游戏规则 --repeated STRuleInfo
  168. VecAwards = {3, "STAwardInfo", "repeated"}, --奖励信息 --repeated STAwardInfo
  169. VecRounds = {4, "STRoundInfo", "repeated"}, --赛制流程 --repeated STRoundInfo
  170. StrDes = {5, "string"}, --赛事描述
  171. }
  172. --赛事每轮规则
  173. G_EapProtos["STRoundInfo"] = {
  174. RoundMode = {1, "sint32"}, --赛制 赛制 分为瑞士移位、定局积分、单循环、打立出局、ASS打立出局
  175. GameNum = {2, "sint32"}, --局数 在选定赛制中一轮中所需的局数
  176. BaseScore = {3, "sint32"}, --初始分 比赛开始后每位用户所携带入桌的积分,仅在第1轮配置
  177. Promotion = {4, "sint32"}, --晋级 可设定前多少名晋级,晋级人数填1即为决出冠军
  178. TimeLimit = {5, "uint32"}, --标准时间 每轮比赛设定一个标准时间,如超过标准时间还未结束的比赛则强行结束
  179. PlyNumLimit = {6, "sint32"}, --标准人数 每轮比赛设定一个开赛标准人数,如低于该人数的则比赛取消
  180. CardMode = {7, "sint32"}, --卡牌类型 每轮比赛使用官方设定的牌进行对局,分为默认、同牌、固定牌 ###赛事玩家信息表中修改玩家数据
  181. TimeStart = {8, "uint32"}, --每轮开始时间
  182. ScoreRate = {9, "float"}, --补分 补分系数,填写系数后与底分相乘得到具体补分(详见异常处理逻辑)
  183. TakeRate = {10, "float"}, --携带分 第2轮及后续轮数可配置,为用户在第1轮结束后积分的比例携带至后续轮
  184. MatchMode = {11, "sint32"}, --匹配 MatchMode 匹配逻辑分为固定、随机、高分对高分、高分对低分
  185. ScoreOut = {12, "float"}, --淘汰分 打立出局及ASS打立出局专有的配置项,配置赛事初始淘汰分
  186. ExtrInfo = {13, "string"}, --【打立专有】包含设定的时间内按照配置比例上涨底分和淘汰分及分桌规则
  187. }
  188. -- 上传游戏规则
  189. G_EapProtos["STRuleInfo"] = {
  190. Name = {1, "string"}, --规则名称
  191. Value = {2, "string"}, --规则数,多个以逗号分隔
  192. Type = {3, "string"}, --单选或多选、"Signle" or "Multi"
  193. Index = {4, "sint32"}, --显示顺序
  194. }
  195. -- 比赛状态更新通知
  196. G_EapProtos[OpcodeMatchBaseNoti] = {
  197. MatchInfo = {3, "STBaseInfo"}, --赛事基本信息
  198. }
  199. -- 比赛详情更新通知
  200. G_EapProtos[OpcodeMatchInfoNoti] = {
  201. OpeType = {1, "sint32"}, --赛事操作类型
  202. MatchInfo = {2, "STListItem"}, --赛事详情信息
  203. }
  204. -- -- 玩家赛事对局详情通知
  205. -- G_EapProtos[OpcodeUserInfoNoti] = {
  206. -- UserInfo = {2, "STUserMatchInfo"}, --对局详情信息
  207. -- }
  208. -- 算分服务器通知
  209. G_EapProtos[OpcodeUserScoreNoti] = {
  210. MatchID = {1, "string"}, --赛事算分
  211. Round = {2, "sint32"}, --计算的局数
  212. CalType = {3, "sint32"}, --算分方式
  213. CRet = {4, "sint32"}, --算分结果状态
  214. }
  215. -- 赛事道具改变通知
  216. G_EapProtos[OpcodeMatchItemNoti] = {
  217. MatchID = {1, "string"}, --赛事id
  218. OpeType = {2, "sint32"}, --操作类型 1:增加 2:删除
  219. VecItems = {3, "STMatchItem", "repeated"}, --赛事道具
  220. }
  221. -- 创建桌子信息通知
  222. G_EapProtos["STCreateInfo"] = {
  223. nRet = {1, "sint32"}, --0:桌子创建成功 -1:桌子创建失败
  224. TableID = {2, "string"}, --椅子号
  225. StrErr = {3, "string"}, --错误描述
  226. StrExtra = {4, "string"}, --json, 扩展信息: 需要转发第三方客户端的入桌数据等自定义信息
  227. }
  228. -- 创建桌子返回信息;通过第一电竞将STCreateInfo.StrExtra转发给第三方客户端
  229. G_EapProtos[OpcodeThirdCreateNoti] = {
  230. MatchID = {1, "string"}, --赛事编号
  231. VecInfos = {2, "STCreateInfo"}, --创建的桌子信息
  232. }
  233. -- 查询赛事信息
  234. G_EapProtos[OpcodeMatchListGet] = {
  235. ClubID = {2, "sint32"}, -- 俱乐部id,有此值,查找对应俱乐部赛事
  236. AppID = {3, "sint32"}, -- 第三方应用id -1:获取所有app的赛事
  237. GameID = {4, "sint32"}, -- 获取对应appid+gameid的赛事
  238. PageNum = {5, "sint32"}, -- 数据分页页码
  239. ItemNum = {6, "sint32"}, -- 单页数据数量
  240. }
  241. G_EapProtos[OpcodeMatchListAck] = {
  242. nRet = {1, "sint32"},
  243. ClubID = {2, "sint32"}, --俱乐部id
  244. AppID = {3, "sint32"}, -- 第三方应用id -1:获取所有app的赛事
  245. GameID = {4, "sint32"}, -- 获取对应appid+gameid的赛事
  246. PageNum = {5, "sint32"}, -- 数据分页页码
  247. ItemNum = {6, "sint32"}, -- 单页数据数量
  248. VecMatch = {7, "STListItem", "repeated"}, -- repeated STListItem
  249. Count = {8, "sint32"}, --赛事总数
  250. }
  251. -- 获取比赛规则
  252. G_EapProtos[OpcodeMatchRuleGet] = {
  253. PID = {1, "sint32"},
  254. StrTicket = {2, "string"},
  255. MatchID = {3, "string"},
  256. }
  257. G_EapProtos[OpcodeMatchRuleAck] = {
  258. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  259. MatchRule = {2, "STMatchRule"}, --赛事规则
  260. }
  261. -- 获取进行中的赛事玩家详情,可用于赛事列表获取后,某个赛事玩家对应的信息
  262. G_EapProtos["STUserMatchInfo"] = {
  263. MatchID = {1, "string"}, -- 赛事ID
  264. PID = {9, "sint32"}, -- 玩家id
  265. TeamID = {2, "sint32"}, -- 战队编号
  266. TeamType = {11, "sint32"}, -- 战队类型 --0普通战队 1临时战队
  267. GameNumCur = {5, "sint32"}, -- 当前局数 在选定赛制中一轮中所需的局数
  268. Score = {3, "float"}, -- 分数
  269. ScoreExtra = {4, "float"}, -- 独立初始分 为指定选手配置的独立初始分,可每轮进行配置 ###赛事玩家信息表中修改玩家数据
  270. Status = {6, "sint32"}, -- 玩家状态, 和赛事状态公用定义MATCH_STATUS
  271. RoundCur = {7, "sint32"}, -- 当前轮数
  272. Rank = {10, "sint32"}, -- 排名
  273. UpTime = {8, "uint32"}, -- 最后一次对局完成时间,可能用于排名
  274. ThirdID = {13, "string"}, -- 第三方账号,用于通知配桌
  275. VecAwards = {12, "STMatchItem", "repeated"}, -- 奖励信息 --repeated STMatchItem
  276. --积分赛
  277. Prime = {21, "float"}, --当天赛事原始分
  278. Calcu = {22, "float"}, --当天定时核算分
  279. Limit = {23, "sint32"}, --需要的局数
  280. Days = {24, "sint32"}, --游戏天数
  281. DayTime = {25, "sint32"}, --最后天数数据,格式yyyymmdd:20001112
  282. AppID = {27, "sint32"},
  283. AllNum = {28, "sint32"}, --积分赛总局数统计
  284. ReNum = {29, "sint32"}, --热力局数统计
  285. AllPrime = {30, "float"}, --总原始分统计
  286. BlScore = {31, "float"}, --平均分
  287. BlRank = {32, "sint32"}, --平均分排名
  288. ReScore = {33, "float"}, --热力分
  289. ReRank = {34, "sint32"}, --热力排名
  290. AcScore = {35, "float"}, --活跃标准分
  291. AcRank = {36, "sint32"}, --活跃排名
  292. }
  293. G_EapProtos[OpcodeUserMatchInfoGet] = {
  294. PID = {1, "sint32"},
  295. MatchID = {2, "string"}, --MatchID=0,获取玩家参加的所有赛事
  296. StrTicket = {3, "string"},
  297. }
  298. G_EapProtos[OpcodeUserMatchInfoAck] = {
  299. nRet = {1, "sint32"},
  300. MatchID = {2, "string"},
  301. UserInfo = {3, "STUserMatchInfo"},
  302. VecUsers = {4, "STUserMatchInfo", "repeated"}, --repeated STUserMatchInfo
  303. }
  304. -- 赛事匹配阶段确认参加赛事,由sdk发送确认消息
  305. G_EapProtos[OpcodeUserConfirmMatchGet] = {
  306. PID = {1, "sint32"},
  307. MatchID = {2, "string"},
  308. StrTicket = {3, "string"},
  309. }
  310. G_EapProtos[OpcodeUserConfirmMatchAck] = {
  311. nRet = {1, "sint32"},
  312. PID = {2, "sint32"},
  313. MatchID = {3, "string"},
  314. }
  315. -- 获取个人参加的所有赛事(正规平台赛事)
  316. G_EapProtos[OpcodeJoinedHistoryGet] = {
  317. PID = {1, "sint32"},
  318. StrTicket = {2, "string"},
  319. TeamID = {5, "sint32"}, -- 以战队作为查询条件
  320. PageNum = {3, "sint32"}, -- 数据分页页码
  321. ItemNum = {4, "sint32"}, -- 单页数据数量
  322. }
  323. G_EapProtos[OpcodeJoinedHistoryAck] = {
  324. nRet = {1, "sint32"},
  325. PageNum = {2, "sint32"}, -- 数据分页页码
  326. ItemNum = {3, "sint32"}, -- 单页数据数量
  327. TeamID = {5, "sint32"}, -- 以战队作为查询条件
  328. VecMatch = {4, "STUserMatchInfo", "repeated"},
  329. }
  330. -- 获取赛事详情, 用于历史赛事的详细信息查询
  331. G_EapProtos[OpcodeHistoryDetailGet] = {
  332. PID = {1, "sint32"},
  333. StrTicket = {2, "string"},
  334. MatchID = {3, "string"},
  335. }
  336. G_EapProtos[OpcodeHistoryDetailAck] = {
  337. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  338. MatchID = {2, "string"},
  339. MatchInfo = {3, "STListItem"}, --
  340. }
  341. -- 玩家战队排名
  342. G_EapProtos["STRankTeam"] = {
  343. TeamID = {1, "sint32"},
  344. MatchID = {2, "string"},
  345. TeamType = {3, "sint32"},
  346. Round = {4, "sint32"}, --轮数
  347. Rank = {5, "sint32"},
  348. Score = {6, "float"},
  349. Finish = {8, "sint32"},
  350. UpTime = {9, "uint32"}, --赛事时间
  351. GameID = {10, "sint32"},
  352. VecInfos = {7, "STUserMatchInfo", "repeated"}, --玩家的赛事信息 --repeated STUserMatchInfo
  353. }
  354. -- 获取战队排行榜
  355. G_EapProtos[OpcodeTeamMatchRankGet] = {
  356. PID = {1, "sint32"},
  357. StrTicket = {2, "string"},
  358. MatchID = {3, "string"},
  359. TeamID = {8, "sint32"},
  360. Round = {4, "sint32"},
  361. PageNum = {5, "sint32"}, -- 数据分页页码
  362. ItemNum = {6, "sint32"}, -- 单页数据数量
  363. OpeType = {7, "sint32"}, -- 战队排名:0:战队排行 1:报名的战队,仅用于进行中的赛事
  364. AckType = {9, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要
  365. MemNum = {10, "sint32"}, -- 成员数量
  366. }
  367. G_EapProtos[OpcodeTeamMatchRankAck] = {
  368. nRet = {1, "sint32"},
  369. PID = {2, "sint32"},
  370. MatchID = {3, "string"},
  371. TeamID = {12, "sint32"},
  372. Round = {4, "sint32"},
  373. PageNum = {5, "sint32"}, -- 数据分页页码
  374. ItemNum = {6, "sint32"}, -- 单页数据数量
  375. VecTeams = {7, "STRankTeam", "repeated"}, --repeated STRankTeam
  376. OpeType = {8, "sint32"}, -- 战队排名:0:战队排行 1:报名的战队,仅用于进行中的赛事
  377. AckType = {10, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要
  378. MemNum = {11, "sint32"},
  379. SelfInfo = {9, "STRankTeam"}, -- 战队自己的数据
  380. }
  381. -- 获取赛事个人排行榜数据
  382. G_EapProtos[OpcodeUserMatchRankGet] = {
  383. PID = {1, "sint32"},
  384. MatchID = {2, "string"},
  385. StrTicket = {3, "string"},
  386. Round = {4, "sint32"},
  387. PageNum = {5, "sint32"}, -- 数据分页页码
  388. ItemNum = {6, "sint32"}, -- 单页数据数量
  389. OpeType = {7, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要
  390. }
  391. G_EapProtos[OpcodeUserMatchRankAck] = {
  392. nRet = {1, "sint32"},
  393. PID = {2, "sint32"},
  394. MatchID = {3, "string"},
  395. Round = {4, "sint32"},
  396. PageNum = {5, "sint32"}, -- 数据分页页码
  397. ItemNum = {6, "sint32"}, -- 单页数据数量
  398. SelfInfo = {7, "STUserMatchInfo"}, --玩家自己的排行榜数据
  399. VecUsers = {8, "STUserMatchInfo", "repeated"}, --repeated STUserMatchInfo
  400. }
  401. -- 积分赛获取好友排行
  402. G_EapProtos[OpcodePointRankListGet] = {
  403. PID = {1, "sint32"},
  404. Ticket = {2, "string"},
  405. MatchID = {3, "string"},
  406. VecPIDs = {4, "uint32", "repeated"},
  407. }
  408. G_EapProtos[OpcodePointRankListAck] = {
  409. nRet = {1, "sint32"},
  410. MatchID = {2, "string"},
  411. VecInfos = {3, "STUserMatchInfo", "repeated"}, --玩家的赛事信息
  412. }
  413. -- 获取平台对应的游戏
  414. G_EapProtos[OpcodeMatchGameIDsGet] = {
  415. PID = {1, "sint32"},
  416. StrTicket = {2, "string"},
  417. AppID = {3, "sint32"}, -- 平台ID
  418. }
  419. G_EapProtos["InfoGameID"] = {
  420. appid = {1, "sint32"}, -- 平台ID
  421. id = {2, "sint32"}, -- gameid
  422. name = {3, "string"}, -- 游戏名称
  423. iosUrl = {4, "string"}, -- ios下载地址
  424. androidUrl = {5, "string"}, -- 安卓下载地址
  425. iosTheme = {6, "string"}, -- ios跳转theme
  426. androidTheme = {7, "string"}, -- 安卓theme,后续可能是包名
  427. }
  428. G_EapProtos[OpcodeMatchGameIDsAck] = {
  429. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  430. PID = {2, "sint32"},
  431. AppID = {3, "sint32"}, -- 平台ID
  432. VecGameIDs = {4, "InfoGameID", "repeated"}, --repeated InfoGameID
  433. }
  434. G_EapProtos["MatchGameIDsAck"] = {
  435. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  436. PID = {2, "sint32"},
  437. AppID = {3, "sint32"}, -- 平台ID
  438. VecGameIDs = {4, "InfoGameID", "repeated"}, --repeated InfoGameID
  439. }
  440. -- 获取所有的平台
  441. G_EapProtos[OpcodeMatchAppIDsGet] = {
  442. PID = {1, "sint32"},
  443. StrTicket = {2, "string"},
  444. GameIDs = {3, "sint32"}, --是否需要GameIDs,1则返回VecAppIDs
  445. }
  446. G_EapProtos["InfoAppID"] = {
  447. appid = {1, "sint32"}, -- 平台ID
  448. name = {2, "string"}, -- 游戏名称
  449. status = {3, "sint32"}, -- ios下载地址
  450. logos = {4, "string", "repeated"}, -- 应用logo
  451. popoutStartTime = {5, "uint32"}, --展示时间
  452. popoutEndTime = {6, "uint32"}, --展示时间
  453. }
  454. G_EapProtos[OpcodeMatchAppIDsAck] = {
  455. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  456. VecAppIDs = {2, "InfoAppID", "repeated"},
  457. VecGameIDs = {3, "MatchGameIDsAck", "repeated"},
  458. }
  459. -- 获取玩家参加的历史积分赛
  460. G_EapProtos[OpcodePointHistoryGet] = {
  461. PID = {1, "sint32"},
  462. AppID = {2, "sint32"},
  463. TeamID = {3, "sint32"},
  464. PageNum = {4, "sint32"}, -- 数据分页页码
  465. ItemNum = {5, "sint32"}, -- 单页数据数量
  466. }
  467. G_EapProtos[OpcodePointHistoryAck] = {
  468. nRet = {1, "sint32"},
  469. AppID = {2, "sint32"},
  470. TeamID = {3, "sint32"}, -- 以战队作为查询条件
  471. PageNum = {4, "sint32"}, -- 数据分页页码
  472. ItemNum = {5, "sint32"}, -- 单页数据数量
  473. VecMatch = {6, "STUserMatchInfo", "repeated"},
  474. }
  475. -- 积分赛排行榜获取
  476. G_EapProtos[OpcodePointBigRankGet] = {
  477. PID = {1, "sint32"},
  478. Secret = {2, "string"},
  479. MatchID = {3, "string"},
  480. PageNum = {4, "sint32"}, -- 数据分页页码
  481. ItemNum = {5, "sint32"}, -- 单页数据数量
  482. OpeType = {6, "sint32"}, -- 1:自己的数据 2:其他玩家排行 3:都要
  483. RankType = {7, "sint32"}, -- 1:平均成绩排行 2:活跃排行-比赛局数 3:热力排行-热力局数
  484. }
  485. G_EapProtos[OpcodePointBigRankAck] = {
  486. CRet = {1, "sint32"},
  487. MatchID = {2, "string"},
  488. PageNum = {3, "sint32"}, -- 数据分页页码
  489. ItemNum = {4, "sint32"}, -- 单页数据数量
  490. SelfInfo = {5, "STUserMatchInfo"}, -- 玩家自己的排行榜数据
  491. VecInfos = {6, "STUserMatchInfo", "repeated"}, --玩家的赛事信息
  492. RankType = {7, "sint32"}, -- 1:平均成绩排行 2:活跃排行-比赛局数 3:热力排行-热力局数
  493. }
  494. -- 积分赛获取人数及对局数
  495. G_EapProtos[OpcodePointJoinInfoGet] = {
  496. PID = {1, "sint32"},
  497. Secret = {2, "string"},
  498. MatchIDs = {3, "string", "repeated"},
  499. }
  500. G_EapProtos["PointJoinItem"] = {
  501. MatchID = {1, "string"},
  502. Count = {2, "sint32"}, --赛事参加人数
  503. GameNum = {3, "sint32"}, --玩家参赛总数
  504. }
  505. G_EapProtos[OpcodePointJoinInfoAck] = {
  506. nRet = {1, "sint32"},
  507. VecNums = {3, "PointJoinItem", "repeated"}, --参赛总数
  508. }
  509. -- 参加赛事 退出赛事
  510. G_EapProtos[OpcodeMotifyStatusGet] = {
  511. PID = {1, "sint32"},
  512. MatchID = {2, "string"},
  513. StrTicket = {3, "string"},
  514. TeamID = {4, "sint32"},
  515. Type = {5, "sint32"}, -- 1:参加 2:退出 等
  516. }
  517. G_EapProtos[OpcodeMotifyStatusAck] = {
  518. PID = {1, "sint32"},
  519. nRet = {2, "sint32"}, -- 0:成功 其他:定义通用错误码
  520. MatchID = {3, "string"},
  521. TeamID = {4, "sint32"},
  522. Type = {5, "sint32"},
  523. TeamType = {6, "sint32"},--0普通战队 1临时战队
  524. Members = {7, "sint32", "repeated"},--成员ID列表 --repeated sint32
  525. }
  526. -- 玩家每局对局详情
  527. G_EapProtos[OpcodeMatchRoundGet] = {
  528. PID = {1, "sint32"},
  529. StrTicket = {2, "string"},
  530. DestPID = {3, "sint32"}, -- 要查找的玩家记录
  531. MatchID = {4, "string"},
  532. PageNum = {5, "sint32"}, -- 数据分页页码
  533. ItemNum = {6, "sint32"}, -- 单页数据数量
  534. }
  535. G_EapProtos[OpcodeMatchRoundAck] = {
  536. nRet = {1, "sint32"}, -- 0:成功 其他:定义通用错误码
  537. MatchID = {2, "string"},
  538. DestPID = {3, "sint32"}, -- 要查找的玩家记录
  539. VecRounds = {4, "STInfoGame", "repeated"}, --每局对局详情
  540. PageNum = {5, "sint32"}, -- 数据分页页码
  541. ItemNum = {6, "sint32"}, -- 单页数据数量
  542. }
  543. -- [赛事上报]
  544. G_EapProtos["STInfoGame"] = {
  545. --第三方忽略信息
  546. PID = {1, "sint32"}, --玩家账号
  547. MatchID = {2, "string"}, --赛事id
  548. Master = {3, "sint32"}, --大师分
  549. GameID = {4, "sint32"}, --游戏id
  550. Round = {5, "sint32"}, --轮数
  551. GameNum = {6, "sint32"}, --游戏局数
  552. UpTime = {7, "uint32"}, --数据上传时间
  553. CardType = {8, "string"}, --玩家最大牌型
  554. MaxRate = {9, "sint32"}, --最大倍数
  555. CardArray = {10, "string"},--玩家手牌
  556. TimeCost = {21, "sint32"}, --游戏时间
  557. VPScore = {22, "float"}, --vp总分
  558. VPWin = {23, "float"}, --vp胜利总分
  559. Chair1 = {11, "sint32"}, --椅子号1
  560. Chair2 = {12, "sint32"}, --椅子号2
  561. Chair3 = {13, "sint32"}, --椅子号3
  562. Chair4 = {14, "sint32"}, --椅子号4
  563. Pos1 = {15, "sint32"}, --顺位1
  564. Pos2 = {16, "sint32"}, --顺位2
  565. Pos3 = {17, "sint32"}, --顺位3
  566. Pos4 = {18, "sint32"}, --顺位4
  567. --上传数据类型A
  568. UniqueID = {41, "string"}, --桌子唯一值,积分赛为邀请码+局数
  569. Win = {42, "sint32"}, --赢
  570. Fail = {43, "sint32"}, --输
  571. Tie = {44, "sint32"}, --平局
  572. --上传数据类型B
  573. BaseScore = {71, "float"}, -- 底分
  574. Score = {72, "float"}, --结算积分
  575. VecScores = {73, "float", "repeated"}, -- 本桌所有玩家得分
  576. ChairID = {74, "sint32"}, --椅子号
  577. TimeCost = {75, "sint32"}, --游戏时间
  578. Cost = {76, "sint32"}, --开放消耗房卡数
  579. RoomID = {77, "string"}, --私房房号
  580. TimeStart = {78, "uint32"}, --小局开始时间
  581. TimeEnd = {79, "uint32"}, --小局结束时间
  582. RoomStart = {80, "uint32"}, --房间开始
  583. RoomEnd = {81, "uint32"}, --房间结束
  584. --麻将数据类型A
  585. Feng = {101, "sint32"}, --圈风
  586. Zhuang = {102, "sint32"}, --庄家
  587. Ting = {103, "sint32"}, --是否已听牌
  588. PaoHu = {105, "sint32"}, --玩家炮胡次数总计
  589. ZiMo = {106, "sint32"}, --玩家自摸次数总计
  590. DianPao = {107, "sint32"}, --玩家点炮次数总计
  591. GangKai = {108, "sint32"}, --玩家杠开次数总计
  592. Chi = {109, "sint32"}, --吃牌次数总计
  593. Peng = {110, "sint32"}, --碰牌次数总计
  594. Gang = {111, "sint32"}, --杠牌次数总计
  595. MenQing = {112, "sint32"}, --门清
  596. HaiDi = {113, "sint32"}, --海底捞月
  597. --麻将数据类型B
  598. TingRate = {141, "sint32"}, --听牌倍数
  599. TingRound = {142, "sint32"}, --听牌轮数
  600. HuRate = {143, "sint32"}, --胡牌倍数
  601. HuRound = {144, "sint32"}, --胡牌轮数
  602. --麻将数据类型C
  603. CardHu = {181, "sint32"}, --胡的那一张牌
  604. VecAn = {182, "sint32", "repeated"}, --暗杠牌
  605. VecMing = {183, "sint32", "repeated"}, --暗杠牌
  606. VecBu = {187, "sint32", "repeated"}, --暗杠牌
  607. VecChi = {188, "sint32", "repeated"}, --吃牌
  608. VecPeng = {189, "sint32", "repeated"}, --碰牌
  609. }
  610. -- 上传游戏数据
  611. G_EapProtos[OpcodeUploadGameResultGet] = {
  612. AppID = {1, "sint32"}, -- 应用ID
  613. ThirdID = {2, "string"}, -- 第三方唯一账号
  614. MatchID = {3, "string"}, -- 赛事ID
  615. InfoGame = {8, "STInfoGame"}, -- 比赛当局具体数据
  616. }
  617. G_EapProtos[OpcodeUploadGameResultAck] = {
  618. nRet = {1, "sint32"}, -- 0:正常 -1:参数异常
  619. AppID = {2, "sint32"}, -- 应用ID
  620. ThirdID = {3, "string"}, -- 第三方唯一账号
  621. MatchID = {4, "string"}, -- 比赛ID
  622. Error = {5, "string"}, -- 错误描述,如果有
  623. }
  624. ---------------------------------------- 战队选拔赛 ----------------------------------------
  625. -- 战队积分赛当天数据获取
  626. G_EapProtos["PointTeamDayItem"] = {
  627. TeamID = {1, "sint32"},
  628. DayTime = {2, "sint32"},
  629. AllNum = {3, "sint32"},
  630. AllScore = {4, "float"},
  631. Members = {5, "STUserMatchInfo", "repeated"},
  632. }
  633. G_EapProtos[OpcodePointTeamDayGet] = {
  634. PID = {1, "sint32"},
  635. Ticket = {2, "string"},
  636. MatchID = {3, "string"},
  637. TeamID = {4, "sint32"},
  638. PageNum = {5, "sint32"},
  639. ItemNum = {6, "sint32"},
  640. MemNum = {7, "sint32"}, --返回的成员数量;前四名 or 前10名
  641. }
  642. G_EapProtos[OpcodePointTeamDayAck] = {
  643. nRet = {1, "sint32"},
  644. MatchID = {2, "string"},
  645. TeamID = {3, "sint32"},
  646. PageNum = {4, "sint32"},
  647. ItemNum = {5, "sint32"},
  648. RankInfo = {6, "PointTeamDayItem", "repeated"},
  649. }
  650. ---------------------------------------- 红包活动 ----------------------------------------
  651. -- 红包获取
  652. G_EapProtos["UserRedCashItem"] = {
  653. MatchID = {1, "string"},
  654. PID = {2, "sint32"},
  655. Type = {3, "sint32"},
  656. Money = {4, "float"},
  657. OpenTime = {5, "uint32"},
  658. ChangeMoney = {6, "float"},
  659. ChangeTime = {7, "uint32"},
  660. ExchangeTime = {8, "uint32"}, --兑换时间,如果>0,表示已经兑换
  661. Rank = {9, "uint32"},
  662. }
  663. G_EapProtos[OpcodeUserRedCashGet] = {
  664. PID = {1, "sint32"},
  665. Ticket = {2, "string"},
  666. MatchID = {3, "string"},
  667. }
  668. G_EapProtos[OpcodeUserRedCashAck] = {
  669. nRet = {1, "sint32"},
  670. PID = {2, "sint32"},
  671. MatchID = {3, "string"},
  672. RedInfo = {4, "UserRedCashItem"},
  673. }
  674. -- 红包详情
  675. G_EapProtos[OpcodeUserRedChangeGet] = {
  676. PID = {1, "sint32"},
  677. Ticket = {2, "string"},
  678. MatchID = {3, "string"},
  679. Type = {4, "sint32"}, --0=初始红包、1组局红包、2排名红包
  680. PageNum = {5, "sint32"},
  681. ItemNum = {6, "sint32"},
  682. }
  683. G_EapProtos[OpcodeUserRedChangeAck] = {
  684. nRet = {1, "sint32"},
  685. PID = {2, "sint32"},
  686. MatchID = {3, "string"},
  687. Type = {4, "sint32"}, --0=初始红包、1组局红包、2排名红包
  688. PageNum = {5, "sint32"},
  689. ItemNum = {6, "sint32"},
  690. VecInfos = {7, "UserRedCashItem", "repeated"},
  691. }
  692. -- 红包兑换
  693. G_EapProtos[OpcodeItemExChangeGet] = {
  694. PID = {1, "sint32"},
  695. Ticket = {2, "string"},
  696. MatchID = {3, "string"},
  697. Type = {4, "sint32"}, -- 1:红包
  698. }
  699. G_EapProtos[OpcodeItemExChangeAck] = {
  700. nRet = {1, "sint32"},
  701. PID = {2, "sint32"},
  702. MatchID = {3, "string"},
  703. Type = {4, "sint32"}, -- 1:红包
  704. Money = {5, "float"}, -- 红包数
  705. ItemNum = {6, "sint32"}, -- 兑换的数量
  706. Error = {7, "string"}, -- 错误描述
  707. }