CMD_LogonServer.js 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. //CMD_LogonServer.js
  2. //登录命令
  3. MDM_GP_LOGON = 1; //广场登录
  4. //登录模式 SUB_GP_LOGON_ACCOUNTS
  5. SUB_GP_LOGON_GAMEID = 1; //帐号登录
  6. SUB_GP_LOGON_ACCOUNTS = 2; //I D 登录
  7. SUB_GP_REGISTER_ACCOUNTS = 3; //注册帐号
  8. SUB_GP_REGISTER_PHONE = 8; //注册手机帐号
  9. //登录结果
  10. SUB_GP_LOGON_SUCCESS = 100; //登录成功
  11. SUB_GP_LOGON_FAILURE = 101; //登录失败
  12. SUB_GP_LOGON_FINISH = 102; //登录完成
  13. SUB_GP_VALIDATE_MBCARD = 103; //登录失败
  14. SUB_GP_VALIDATE_PASSPORT = 104; //登录失败
  15. SUB_GP_VERIFY_RESULT = 105; //验证结果
  16. SUB_GP_MATCH_SIGNUPINFO = 106; //报名信息
  17. SUB_GP_GROWLEVEL_CONFIG = 107; //等级配置
  18. SUB_GP_VERIFY_CODE_RESULT = 108; //验证结果
  19. SUB_GP_REAL_AUTH_CONFIG = 110; //认证配置
  20. SBU_GP_CLUB_SERVER_INFO = 111; //俱乐部端口
  21. //升级提示
  22. SUB_GP_UPDATE_NOTIFY = 200; //升级提示
  23. CMD_GP_LogonAccounts = cc.Class({
  24. ctor: function () {
  25. //this._name = "CMD_GP_LogonAccounts"
  26. //系统信息
  27. this.dwPlazaVersion = 0; //广场版本
  28. this.szMachineID = ""; //机器序列
  29. //登录信息
  30. this.cbValidateFlags = 0; //校验标识
  31. this.szPassword = ""; //登录密码
  32. this.szAccounts = ""; //登录帐号
  33. this.szPassPortID = ""; //身份证号
  34. this.len_szMachineID = 33 * cc.TCHAR_SIZE;
  35. this.len_szPassword = window.LEN_MD5 * cc.TCHAR_SIZE;
  36. this.len_szAccounts = window.LEN_ACCOUNTS * cc.TCHAR_SIZE;
  37. this.len_szPassPortID = 19 * cc.TCHAR_SIZE;
  38. },
  39. });
  40. //注册帐号
  41. CMD_GP_RegisterAccounts = cc.Class({
  42. ctor: function () {
  43. //this._name = 'CMD_GP_RegisterAccounts'
  44. this.dwPlazaVersion = 0; //广场版本
  45. this.szMachineID = ""; //机器序列
  46. this.szPassWord = ""; //登录帐号
  47. this.wFaceID = 0; //头像标识
  48. this.cbGender = 0; //用户性別
  49. this.szAccounts = ""; //登录帐号
  50. this.szNickName = ""; //用户姓名
  51. this.szPassPortID = ""; //证件号码
  52. this.szCompellation = ""; //真实名字
  53. this.cbValidateFlags = 0; //校验标识
  54. this.dwAgentID = 0; //代理标识
  55. this.dwSpreaderGameID = 0; //推荐标识
  56. this.len_szMachineID = 33 * cc.TCHAR_SIZE; //机器序列 66
  57. this.len_szPassWord = window.LEN_MD5 * cc.TCHAR_SIZE; //登录密码 66
  58. this.len_szAccounts = window.LEN_ACCOUNTS * cc.TCHAR_SIZE; //登录帐号 64
  59. this.len_szNickName = window.LEN_NICKNAME * cc.TCHAR_SIZE; //用户姓名 64
  60. this.len_szPassPortID = 19 * cc.TCHAR_SIZE; //证件号码 38
  61. this.len_szCompellation = 16 * cc.TCHAR_SIZE; //真实名字 32
  62. },
  63. });
  64. //登录成功
  65. CMD_GP_LogonSuccess = cc.Class({
  66. ctor: function () {
  67. // this._name = "CMD_GP_LogonSuccess";
  68. this.wFaceID = 0; //头像标识
  69. this.dwUserID = 0; //用户 I D
  70. this.dwGameID = 0; //游戏 I D
  71. this.dwGroupID = 0; //社团标识
  72. this.dwCustomID = 0; //自定标识
  73. this.dwExperience = 0; //经验数值
  74. //用户成绩
  75. this.llUserScore = 0; //用户金币
  76. this.llUserInsure = 0; //用户银行
  77. this.llUserIngot = 0; //用户钻石
  78. this.dUserBeans = 0; //用户游戏豆
  79. //用户信息
  80. this.cbGender = 0; //用户性別
  81. this.cbMoorMachine = 0; //锁定机器
  82. this.szAccounts = ""; //登录帐号
  83. this.szNickName = ""; //用户昵称
  84. this.szDynamicPass = ""; //动态密码
  85. this.szGroupName = ""; //社团名字
  86. this.szClientIP = ""; //ip
  87. //配置信息
  88. this.cbInsureEnabled = 0; //银行使能标识
  89. this.cbShowServerStatus = 0; //显示服务器状态
  90. this.cbIsAgent = 0;
  91. this.dwPlatformRatio = 1; // 平台倍率
  92. //this.szHeadImgURL = ""; //微信头像
  93. this.len_szAccounts = window.LEN_ACCOUNTS * cc.TCHAR_SIZE;
  94. this.len_szNickName = window.LEN_NICKNAME * cc.TCHAR_SIZE;
  95. this.len_szDynamicPass = window.LEN_PASSWORD * cc.TCHAR_SIZE;
  96. this.len_szGroupName = window.LEN_GROUP_NAME * cc.TCHAR_SIZE;
  97. this.len_szClientIP = window.LEN_IP * cc.TCHAR_SIZE;
  98. },
  99. });
  100. //登陆失败
  101. CMD_GP_LogonError = cc.Class({
  102. ctor: function () {
  103. //this._name = "CMD_GP_LogonError";
  104. this.lErrorCode = 0;
  105. this.szErrorDescribe = '';
  106. this.len_szErrorDescribe = 256;
  107. },
  108. });
  109. //俱乐部服务器信息
  110. CMD_GP_ClubServerInfo = cc.Class({
  111. ctor: function () {
  112. this.wClubPort = 0;
  113. },
  114. });
  115. //////////////////////////////////////////////////////////////////////////////////
  116. //列表命令
  117. MDM_GP_SERVER_LIST = 2; //列表信息
  118. //获取命令
  119. SUB_GP_GET_LIST = 1; //获取列表
  120. SUB_GP_GET_SERVER = 2; //获取房间
  121. SUB_GP_GET_ONLINE = 3; //获取在线
  122. SUB_GP_GET_COLLECTION = 4; //获取收藏
  123. //列表信息
  124. SUB_GP_LIST_TYPE = 100; //类型列表
  125. SUB_GP_LIST_KIND = 101; //种类列表
  126. SUB_GP_LIST_NODE = 102; //节点列表
  127. SUB_GP_LIST_PAGE = 103; //定制列表
  128. SUB_GP_LIST_SERVER = 104; //房间列表
  129. SUB_GP_LIST_MATCH = 105; //比赛列表
  130. SUB_GP_VIDEO_OPTION = 106; //视频配置
  131. //道具信息
  132. SUB_GP_LIST_PROPERTY_TYPE = 110; //道具类型
  133. SUB_GP_LIST_PROPERTY_RELAT = 111; //道具关系
  134. SUB_GP_LIST_PROPERTY = 112; //道具列表
  135. SUB_GP_LIST_PROPERTY_SUB = 113; //子道具列表
  136. //完成信息
  137. SUB_GP_LIST_FINISH = 200; //发送完成
  138. SUB_GP_SERVER_FINISH = 201; //房间完成
  139. SUB_GP_MATCH_FINISH = 202; //比赛完成
  140. SUB_GP_PROPERTY_FINISH = 203; //道具完成
  141. MDM_GP_USER = 4;
  142. SUB_GP_REFURBISH = 110; //刷新信息
  143. SUB_GP_REFURBISH_RESULT = 111; //刷新结果
  144. //////////////////////////////////////////////////////////////////////////////////
  145. //服务命令
  146. MDM_GP_USER_SERVICE = 3; //用户服务
  147. //账号服务
  148. SUB_GP_MODIFY_MACHINE = 100; //修改机器
  149. SUB_GP_MODIFY_LOGON_PASS = 101; //修改密码
  150. SUB_GP_MODIFY_INSURE_PASS = 102; //修改密码
  151. SUB_GP_MODIFY_UNDER_WRITE = 103; //修改签名
  152. SUB_GP_QUERY_PASS_PORT_ID = 104; //查询防沉迷验证
  153. SUB_GP_PASS_PORT_ID_RESULT = 105; //查询防沉迷验证结果
  154. SUB_GP_CHECK_PASS_PORT_ID = 106; //防沉迷验证
  155. //修改头像
  156. SUB_GP_USER_FACE_INFO = 120; //头像信息
  157. SUB_GP_SYSTEM_FACE_INFO = 122; //系统头像
  158. SUB_GP_CUSTOM_FACE_INFO = 123; //自定头像
  159. SUB_GP_CUSTOM_FACE_CELL_REQUEST = 124; //自定头像请求下一个包
  160. SUB_GP_GIFT_OPERATION = 134 //礼物
  161. SUB_GP_GIFT_OPERATION_RESULT = 135 //
  162. //个人资料
  163. SUB_GP_USER_INDIVIDUAL = 140; //个人资料
  164. SUB_GP_QUERY_INDIVIDUAL = 141; //查询信息
  165. SUB_GP_MODIFY_INDIVIDUAL = 152; //修改资料
  166. //银行服务
  167. SUB_GP_USER_ENABLE_INSURE = 160; //开通银行
  168. SUB_GP_USER_SAVE_SCORE = 161; //存款操作
  169. SUB_GP_USER_TAKE_SCORE = 162; //取款操作
  170. SUB_GP_USER_TRANSFER_SCORE = 163; //转账操作
  171. SUB_GP_USER_INSURE_INFO = 164; //银行资料
  172. SUB_GP_QUERY_INSURE_INFO = 165; //查询银行
  173. SUB_GP_USER_INSURE_SUCCESS = 166; //银行成功
  174. SUB_GP_USER_INSURE_FAILURE = 167; //银行失败
  175. SUB_GP_QUERY_USER_INFO_REQUEST = 168; //查询用户
  176. SUB_GP_QUERY_USER_INFO_RESULT = 169; //用户信息
  177. SUB_GP_USER_INSURE_ENABLE_RESULT = 170; //开通结果
  178. //比赛服务
  179. SUB_GP_MATCH_SIGNUP = 200; //比赛报名
  180. SUB_GP_MATCH_UNSIGNUP = 201; //取消报名
  181. SUB_GP_MATCH_SIGNUP_RESULT = 202; //报名结果
  182. //签到服务
  183. SUB_GP_CHECKIN_QUERY = 220; //查询签到
  184. SUB_GP_CHECKIN_INFO = 221; //签到信息
  185. SUB_GP_CHECKIN_DONE = 222; //执行签到
  186. SUB_GP_CHECKIN_RESULT = 223; //签到结果
  187. //任务服务
  188. SUB_GP_TASK_LOAD = 240; //加载任务
  189. SUB_GP_TASK_TAKE = 241; //领取任务
  190. SUB_GP_TASK_REWARD = 242; //任务奖励
  191. SUB_GP_TASK_INFO = 243; //任务信息
  192. SUB_GP_TASK_LIST = 244; //任务信息
  193. SUB_GP_TASK_RESULT = 245; //任务结果
  194. //低保服务
  195. SUB_GP_BASEENSURE_LOAD = 260; //加载低保
  196. SUB_GP_BASEENSURE_TAKE = 261; //领取低保
  197. SUB_GP_BASEENSURE_PARAMETER = 262; //低保参数
  198. SUB_GP_BASEENSURE_RESULT = 263; //低保结果
  199. //推广服务
  200. SUB_GP_SPREAD_QUERY = 280; //推广奖励
  201. SUB_GP_SPREAD_INFO = 281; //奖励参数
  202. //等级服务
  203. SUB_GP_GROWLEVEL_QUERY = 300; //查询等级
  204. SUB_GP_GROWLEVEL_PARAMETER = 301; //等级参数
  205. SUB_GP_GROWLEVEL_UPGRADE = 302; //等级升级
  206. //兑换服务
  207. SUB_GP_EXCHANGE_QUERY = 320; //兑换参数
  208. SUB_GP_EXCHANGE_PARAMETER = 321; //兑换参数
  209. SUB_GP_PURCHASE_MEMBER = 322; //购买会员
  210. SUB_GP_PURCHASE_RESULT = 323; //购买结果
  211. SUB_GP_EXCHANGE_SCORE = 324; //兑换游戏币
  212. SUB_GP_EXCHANGE_RESULT = 325; //兑换结果
  213. //商城服务
  214. SUB_GP_GAME_SHOP_QUERY_TYPE = 400; // 商城查询
  215. SUB_GP_GAME_SHOP_QUERY_KIND = 401; // 商城查询
  216. SUB_GP_GAME_SHOP_TYPE_INFO = 410; // 类型信息
  217. SUB_GP_GAME_SHOP_KIND_INFO = 420; // 种类信息
  218. SUB_GP_GAME_SHOP_EXCHANGE = 440; // 商城兑换
  219. SUB_GP_GAME_SHOP_SUCCESS = 460; // 商城成功
  220. SUB_GP_GAME_SHOP_FAILURE = 480; // 商城失败
  221. //操作结果
  222. SUB_GP_OPERATE_SUCCESS = 500; //操作成功
  223. SUB_GP_OPERATE_FAILURE = 501; //操作失败
  224. //获取对战记录
  225. SUB_GP_GET_BATTLERECORD5 = 520; //获取对战记录
  226. SUB_GP_BATTLERECORD_RESULT5 = 521; //获取对战记录
  227. //////////////////////////////////////////////////////////////////////////////////
  228. //修改登录密码
  229. CMD_GP_ModifyLogonPass = cc.Class({
  230. ctor: function () {
  231. this.dwUserID = 0; // 用户I D
  232. this.szDesPassword = ""; // 用户密码
  233. this.szScrPassword = ""; // 用户密码
  234. this.index_dwUserID = 0; // 用户I D 4
  235. this.index_szDesPassword = 4; // 登录密码 2 * window.LEN_PASSWORD(33)
  236. this.index_szScrPassword = 70; // 登录密码 2 * window.LEN_PASSWORD(33)
  237. },
  238. getSize: function () {
  239. return 136;
  240. }
  241. });
  242. //////////////////////////////////////////////////////////////////////////////////
  243. CMD_GP_GIFT = cc.Class({
  244. ctor: function () {
  245. this.dwUserID = 0; // 用户I D
  246. this.dwTargerUserID = 0; // 赠送户I D
  247. this.dwPlatformId = 0;
  248. this.dwShopGiftId = 0;
  249. this.dwNum = 1;//数量
  250. this.dwType = 0;//0购买gift 1 赠送 2 兑换
  251. },
  252. // getSize: function () {
  253. // return 28;
  254. // }
  255. });
  256. //个人资料
  257. CMD_GP_UserIndividual = cc.Class({
  258. ctor: function () {
  259. this.dwUserID = 0; // 用户I D
  260. this.index_dwUserID = 0; // 用户I D 4
  261. },
  262. getSize: function () {
  263. return 4;
  264. }
  265. });
  266. //查询信息
  267. CMD_GP_QueryIndividual = cc.Class({
  268. ctor: function () {
  269. this.dwUserID = 0; // 用户I D
  270. this.szPassword = ""; // 用户密码
  271. this.index_dwUserID = 0; // 用户I D 4
  272. this.index_szPassword = 5; // 用户密码 2 * window.LEN_PASSWORD(33)
  273. },
  274. getSize: function () {
  275. return 70;
  276. }
  277. });
  278. //修改资料
  279. CMD_GP_ModifyIndividual = cc.Class({
  280. ctor: function () {
  281. this.cbGender = 0; // 用户性別
  282. this.dwUserID = 0; // 用户I D
  283. this.szPassword = ""; // 用户密码
  284. this.len_szPassword = window.LEN_PASSWORD * cc.TCHAR_SIZE; // 用户密码 2 * window.LEN_PASSWORD(33)
  285. },
  286. });
  287. //////////////////////////////////////////////////////////////////////////////////
  288. //携带信息 CMD_GP_UserIndividual
  289. DTP_GP_UI_ACCOUNTS = 1; //用户账号
  290. DTP_GP_UI_NICKNAME = 2; //用户昵称
  291. DTP_GP_UI_USER_NOTE = 3; //用户说明
  292. DTP_GP_UI_UNDER_WRITE = 4; //个性签名
  293. DTP_GP_UI_QQ = 5; //Q Q 号码
  294. DTP_GP_UI_EMAIL = 6; //固定电话
  295. DTP_GP_UI_MOBILE_PHONE = 8; //移动电话
  296. DTP_GP_UI_COMPELLATION = 9; //真实名字
  297. DTP_GP_UI_DWELLING_PLACE = 10; //联系地址
  298. DTP_GP_UI_PASSPORTID = 11; //身份标识
  299. DTP_GP_UI_SPREADER = 12; //推广标识
  300. //////////////////////////////////////////////////////////////////////////////////
  301. //开通银行
  302. CMD_GP_UserEnableInsure = cc.Class({
  303. ctor: function () {
  304. this.dwUserID = 0; //用户I D
  305. this.szLogonPass = ""; //登录密码
  306. this.szInsurePass = ""; //银行密码
  307. this.szMachineID = ""; //机器序列
  308. this.index_dwUserID = 0; //用户I D 4
  309. this.index_szLogonPass = 4; //登录密码 2 * window.LEN_PASSWORD(33)
  310. this.index_szInsurePass = 70; //银行密码 2 * window.LEN_PASSWORD(33)
  311. this.index_szMachineID = 136; //机器序列 2 * LEN_MACHINE_ID(33)
  312. },
  313. getSize: function () {
  314. return 202;
  315. }
  316. });
  317. //存入金币
  318. CMD_GP_UserSaveScore = cc.Class({
  319. ctor: function () {
  320. this.dwUserID = 0; //用户I D
  321. this.lSaveScore = 0; //存入金币
  322. this.szMachineID = ""; //机器序列
  323. this.index_dwUserID = 0; //用户I D 4
  324. this.index_lSaveScore = 4; //用户I D 8
  325. this.index_szMachineID = 12; //登录密码 2 * LEN_MACHINE_ID(33)
  326. },
  327. getSize: function () {
  328. return 78;
  329. }
  330. });
  331. //提取金币
  332. CMD_GP_UserTakeScore = cc.Class({
  333. ctor: function () {
  334. this.dwUserID = 0; //用户I D
  335. this.lTakeScore = 0; //提取金币
  336. this.szPassword = ""; // 银行密码
  337. this.szMachineID = ""; //机器序列
  338. this.index_dwUserID = 0; //用户I D 4
  339. this.index_lTakeScore = 4; //用户I D 8
  340. this.index_szPassword = 12; //登录密码 2 * window.LEN_MD5(33)
  341. this.index_szMachineID = 78; //登录密码 2 * LEN_MACHINE_ID(33)
  342. },
  343. getSize: function () {
  344. return 144;
  345. }
  346. });
  347. //修改密码
  348. CMD_GP_ModifyInsurePass = cc.Class({
  349. ctor: function () {
  350. this.dwUserID = 0; // 用户I D
  351. this.szDesPassword = ""; // 用户密码
  352. this.szScrPassword = ""; // 用户密码
  353. this.index_dwUserID = 0; // 用户I D 4
  354. this.index_szDesPassword = 4; // 登录密码 2 * window.LEN_PASSWORD(33)
  355. this.index_szScrPassword = 70; // 登录密码 2 * window.LEN_PASSWORD(33)
  356. },
  357. getSize: function () {
  358. return 136;
  359. }
  360. });
  361. //开通结果
  362. CMD_GP_UserInsureEnableResult = cc.Class({
  363. ctor: function () {
  364. this.cbInsureEnabled = 0; //用户I D
  365. this.szDescribeString = ""; //登录密码
  366. this.index_cbInsureEnabled = 0; //用户I D 1
  367. this.index_szDescribeString = 1; //登录密码 2 * 128
  368. },
  369. getSize: function () {
  370. return 257;
  371. }
  372. });
  373. //银行成功
  374. CMD_GP_UserInsureSuccess = cc.Class({
  375. ctor: function () {
  376. this.dwUserID = 0; //用户 I D
  377. this.llUserScore = 0; //用户金币
  378. this.llUserInsure = 0; //银行金币
  379. this.szDescribeString = ""; //描述消息
  380. this.index_dwUserID = 0; //用户 I D 4
  381. this.index_llUserScore = 4; //用户金币 8
  382. this.index_llUserInsure = 12; //银行金币 8
  383. this.index_szDescribeString = 20; //描述消息 2 * 128
  384. },
  385. getSize: function () {
  386. return 276;
  387. }
  388. });
  389. //银行失败
  390. CMD_GP_UserInsureFailure = cc.Class({
  391. ctor: function () {
  392. this.lResultCode = 0; //错误代码
  393. this.szDescribeString = ""; //描述消息
  394. this.index_lResultCode = 0; //错误代码 1
  395. this.index_szDescribeString = 4; //描述消息 2 * 128
  396. },
  397. getSize: function () {
  398. return 264;
  399. }
  400. });
  401. //////////////////////////////////////////////////////////////////////////////////
  402. //查询签到
  403. CMD_GP_CheckInQueryInfo = cc.Class({
  404. ctor: function () {
  405. this.dwUserID = 0; //用户I D
  406. this.szPassword = ""; //登录密码
  407. this.index_dwUserID = 0; //用户I D 4
  408. this.index_szPassword = 4; //登录密码 2 * window.LEN_PASSWORD(33)
  409. },
  410. getSize: function () {
  411. return 70;
  412. }
  413. });
  414. //签到信息
  415. CMD_GP_CheckInInfo = cc.Class({
  416. ctor: function () {
  417. this.wSeriesDate = 0; // 连续日期
  418. this.bTodayChecked = true; // 签到标识
  419. this.lRewardGold = new Array(LEN_WEEK); // 奖励金币
  420. this.index_wSeriesDate = 0; // 连续日期 2
  421. this.index_bTodayChecked = 2; // 签到标识 1
  422. this.index_lRewardGold = 3; // 奖励金币 8 * LEN_WEEK(7)
  423. },
  424. getSize: function () {
  425. return 59;
  426. }
  427. });
  428. //执行签到
  429. CMD_GP_CheckInDone = cc.Class({
  430. ctor: function () {
  431. this.dwUserID = 0; // 用户I D
  432. this.szPassword = ""; // 签到标识
  433. this.szMachineID = ""; // 奖励金币
  434. this.index_dwUserID = 0; // 用户I D 4
  435. this.index_szPassword = 4; // 签到标识 2 * window.LEN_PASSWORD(33)
  436. this.index_szMachineID = 70; // 奖励金币 2 * LEN_MACHINE_ID(33)
  437. },
  438. getSize: function () {
  439. return 136;
  440. }
  441. });
  442. //签到结果
  443. CMD_GP_CheckInResult = cc.Class({
  444. ctor: function () {
  445. this.bSuccessed = 0; // 成功标识
  446. this.lScore = 0; // 当前金币
  447. this.szNotifyContent = ""; // 提示内容
  448. this.index_bSuccessed = 0; // 成功标识 1
  449. this.index_lScore = 1; // 当前金币 8
  450. this.index_szNotifyContent = 9; // 提示内容 2 * 128
  451. },
  452. getSize: function () {
  453. return 265;
  454. }
  455. });
  456. //////////////////////////////////////////////////////////////////////////////////
  457. CMD_GP_GIFT_OP_Success = cc.Class({
  458. ctor: function () {
  459. this.dwUserID=0;
  460. this.dwTargerUserID = 0;
  461. this.dwNum = 0;
  462. this.dwNumTarger = 0;
  463. this.dwUserMedal = 0;
  464. this.dwRerultCode = 0; //错误代码
  465. },
  466. });
  467. //操作成功
  468. CMD_GP_OperateSuccess = cc.Class({
  469. ctor: function () {
  470. this.lResultCode = 0; //错误代码
  471. this.szDescribeString = ""; //描述消息
  472. this.len_szDescribeString = 128 * cc.TCHAR_SIZE; //描述消息 2 * 128
  473. },
  474. });
  475. //操作失败
  476. CMD_GP_OperateFailure = cc.Class({
  477. ctor: function () {
  478. this.lResultCode = 0; //错误代码
  479. this.szDescribeString = ""; //描述消息
  480. this.index_lResultCode = 0; //错误代码 4
  481. this.index_szDescribeString = 4; //描述消息 2 * 128
  482. },
  483. getSize: function () {
  484. return 264;
  485. }
  486. });
  487. CMD_GP_GetBattleRecord = cc.Class({
  488. ctor: function () {
  489. this.dwUserID = 0; //用户ID
  490. this.wKindID = 0; //游戏类型
  491. this.index_dwUserID = 0;
  492. this.index_wKindID = 4;
  493. },
  494. getSize: function () {
  495. return 6;
  496. }
  497. });
  498. //////////////////////////////////////////////////////////////////////////////////
  499. FailStr = new Array();
  500. FailStr[0] = '未找到房間!';
  501. FailStr[1] = '房間已滿!';
  502. FailStr[2] = '鑽石不足!請反饋給客服';
  503. FailStr[3] = '房間正在創建!';
  504. FailStr[4] = '伺服器異常!';
  505. FailStr[5] = '數量已達上限!';//联盟
  506. FailStr[6] = '未找到';//联盟
  507. FailStr[7] = '遊戲已經開始';
  508. FailStr[8] = '許可權不足!';
  509. FailStr[9] = '代理禁止成員創建!';
  510. FailStr[10] = '房間解散了!';
  511. FailStr[11] = '同盟會封停這個同盟會!';
  512. FailStr[12] = '非成員';//联盟
  513. FailStr[13] = '自動創建失敗';
  514. FailStr[14] = '遊戲中,無法贈送!';
  515. FailStr[15] = '遊戲中,無法下分!';
  516. FailStr[16] = '操作成功!';//退出俱乐部
  517. FailStr[17] = '修改桌子規則成功!';//退出俱乐部
  518. FailStr[18] = '您被禁止進入遊戲房間,詳情請聯系管理!';//
  519. FailStr[19] = '房間內有不能和您同時進入遊戲的玩家,詳情請聯系管理!';//
  520. FailStr[20] = '房間數量已達上限,無法繼續創建!';//
  521. FailStr[21] = '遊戲中,不能修改桌子規則。';//
  522. //查询房间
  523. MDM_GP_GET_SERVER = 7;
  524. SUB_GP_QUERY_BYTYPE = 1; //查询金币场
  525. SUB_GP_QUERY_RELINK = 2; //查询重连(通用)
  526. SUB_GP_CREATE_ROOM = 3; //创建房间
  527. SUB_GP_JOIN_ROOM = 4; //加入房间
  528. SUB_GP_GET_CLUB_ROOM = 5; //查询列表
  529. SUB_GP_DISS_CLUB_ROOM = 6; //解散房间
  530. SUB_GP_QUERY_W_ROOMCARD = 7;
  531. SUB_GP_JOIN_ROOM_G = 8; //加入房间
  532. SUB_GP_CLUB_SET = 9; //俱乐部设置
  533. SUB_GP_GM_DISS_ROOM = 10;
  534. SUB_GP_MODIFY_TABLE_RULE = 11; //修改桌子规则
  535. SUB_GP_GIVE_SCORE = 13; //游戏中锁定财富
  536. SUB_GP_TAKE_SCORE = 14; //游戏中锁定财富
  537. SUB_GP_EXIT_CLUB = 15; //退出俱乐部
  538. SUB_GP_CLUB_ROOM_SET = 17; //俱乐部设置
  539. SUB_GP_CLUB_REVENUE_SET = 18; //俱乐部设置
  540. SUB_GP_GET_OWN_ROOM = 19; //拥有房间 代开
  541. SUB_GP_JOIN_ROOM2 = 21;
  542. SUB_GP_GET_ROOMEX = 31; //创建房间
  543. SUB_GP_FAILED = 100; //失败信息
  544. SUB_GP_QUERYRES = 101; //查询结果
  545. SUB_GP_CREATE_SUCCESS = 102; //创建查询结果
  546. SUB_GP_CLUB_ROOM = 103;
  547. SUB_GP_CLUB_USER_LIST = 104;
  548. SUB_GP_CLUB_DISS_SUC = 105;
  549. SUB_GP_ROOMCARD = 106;
  550. SUB_GP_AUTO_ROOM_SUC = 107;
  551. SUB_GP_CLUB_SET_SUC = 108; //自动创建配置成功
  552. SUB_GP_JOIN_ROOM_RES = 109;
  553. SUB_GP_OWN_ROOM_INFO = 110;
  554. SUB_GP_JOIN_ROOM_RES_G = 111; //加入房间返回
  555. SUB_GP_SERVER_TYPE_LIST = 112;
  556. SUB_GP_CLUB_REVENUE_INFO = 113;
  557. SUB_GP_GET_ROOMEX_RES = 114; //房间列表
  558. SUB_GP_RES_MSG = 200;
  559. //查询金币场
  560. //查询金币场
  561. CMD_GP_C_Query_ByType = cc.Class({
  562. ctor: function () {
  563. this._name = "CMD_GP_C_Query_ByType";
  564. this.dwUserID = 0;
  565. this.wKindID = 0; //游戏ID
  566. this.wType = 0; //房间类型
  567. },
  568. });
  569. //查询重连
  570. CMD_GP_C_Relink = cc.Class({
  571. ctor: function () {
  572. this._name = "CMD_GP_C_Relink";
  573. this.dwUserID = 0;
  574. },
  575. });
  576. //查询
  577. CMD_GP_C_Query_UsingCard = cc.Class({
  578. ctor: function () {
  579. //this._name="CMD_GP_C_Query_UsingCard";
  580. this.dwUserID = 0;
  581. },
  582. });
  583. //俱乐部设置
  584. CMD_GP_C_ClubSet = cc.Class({
  585. ctor: function () {
  586. this._name = "CMD_GP_C_ClubSet";
  587. this.dwUserID = 0;
  588. this.dwClubID = 0;
  589. this.dwLeagueID = 0;
  590. this.bySeeNullRoom = 0; //成员仅见空房
  591. this.byMemberCreat = 0; //成员开房
  592. },
  593. });
  594. //俱乐部设置
  595. CMD_GP_C_ClubRoomSet = cc.Class({
  596. ctor: function () {
  597. this._name = "CMD_GP_C_ClubRoomSet";
  598. this.dwUserID = 0;
  599. this.dwClubID = 0;
  600. this.dwLeagueID = 0;
  601. this.byNoChat = 0; //成员仅见空房
  602. },
  603. });
  604. //俱乐部设置
  605. CMD_GP_C_ClubRevenueSet = cc.Class({
  606. ctor: function () {
  607. this._name = "CMD_GP_C_ClubRevenueSet";
  608. this.dwUserID = 0;
  609. this.dwClubID = 0;
  610. this.dwLeagueID = 0;
  611. this.dwMark = 0; //抽水模式 0每局 1第一句 2每局赢家 3每局大赢家 4(16)总局赢家 5总局大赢家
  612. this.dwLimit = 0; //最低抽水
  613. this.wRate = 0; //千分比
  614. this.wCnt = 0; //大赢家抽水个数
  615. this.byNoUpdateScore = 0; //不即时到账
  616. },
  617. });
  618. //俱乐部赠送
  619. CMD_GP_C_ClubGive = cc.Class({
  620. ctor: function () {
  621. this._name = "CMD_GP_C_ClubGive";
  622. this.dwUserID = 0;
  623. this.szPassWord = "";
  624. this.dwTagUserID = 0;
  625. this.lScore = 0; //金额
  626. this.byType = 0; //种类
  627. this.dwClubID1 = 0;
  628. this.dwClubID2 = 0;
  629. this.szRemark = "";//备注
  630. this.len_szRemark = cc.TCHAR_SIZE * 128;
  631. this.len_szPassWord = window.LEN_MD5 * cc.TCHAR_SIZE; //登录密码 66
  632. },
  633. });
  634. CMD_GP_C_ExitClub = cc.Class({
  635. ctor: function () {
  636. this._name = "CMD_GP_C_ExitClub";
  637. this.dwUserID = 0;
  638. this.dwClubID = 0;
  639. this.szPassWord = "";
  640. this.len_szPassWord = window.LEN_PASSWORD * cc.TCHAR_SIZE; //登录密码 66
  641. },
  642. });
  643. //断线返回
  644. CMD_GP_S_ReturnServer = cc.Class({
  645. ctor: function () {
  646. this._name = "CMD_GP_S_ReturnServer";
  647. this.wKindID = 0; //游戏类型
  648. this.wServerType = 0; //服务器类型
  649. this.llEnterScore = 0; //游戏类型
  650. this.wServerPort = 0;//房间端口
  651. this.szServerAddr = "";//房间地址
  652. this.byTipsReturn = 0; //是否提示重连
  653. this.len_szServerAddr = cc.TCHAR_SIZE * 32;
  654. },
  655. });
  656. //断线返回
  657. CMD_GP_S_ReturnRoom = cc.Class({
  658. ctor: function () {
  659. this._name = "CMD_GP_S_ReturnRoom";
  660. this.wKindID = 0; //游戏类型
  661. this.wServerType = 0; //服务器类型
  662. this.llEnterScore = 0; //游戏类型
  663. this.wServerPort = 0;//房间端口
  664. this.szServerAddr = "";//房间地址
  665. this.dwRoomID = 0; //房间号
  666. this.dwClubID = 0; //俱乐部
  667. this.byPartID = 0;
  668. this.len_szServerAddr = cc.TCHAR_SIZE * 32;
  669. },
  670. });
  671. //创建新桌
  672. CMD_GP_C_CreateRoom = cc.Class({
  673. ctor: function () {
  674. this._name = "CMD_GP_C_CreateRoom";
  675. this.dwUserID = 0;
  676. this.wKindID = 0;
  677. this.dwRules = new Array(5); //游戏规则
  678. this.dwServerRules = 0; //服务器规则
  679. this.dwClubID = 0; //俱乐部ID
  680. this.byPartID = 0; //俱乐部子ID
  681. this.szRoomName = '';
  682. this.dwRoomID = 0;
  683. this.len_szRoomName = 16 * cc.TCHAR_SIZE;
  684. //俱乐部规则
  685. this.cbClubKind = 0; //俱乐部类型
  686. this.llSitScore = 0; //参与分
  687. this.llStandScore = 0; //淘汰分
  688. this.dwBigRevRules = 0; //大局表情规则
  689. this.dwBigMinScore = 0; //大局表情起曾分
  690. this.dwBigCnt = 0; //大局百分比或固定数量
  691. this.dwSmallRevRules = 0; //小局表情规则
  692. this.dwSmallMinScore = 0; //小局表情起曾分
  693. this.dwSmallCnt = 0; //小局百分比或固定数量
  694. this.cbReturnType = 0; //反水类型
  695. this.bNegativeScore = 0; //反水类型
  696. this.dwMagnification = 0; //倍率
  697. this.szTag = ''; //标签
  698. this.len_szTag = 10 * cc.TCHAR_SIZE;
  699. },
  700. });
  701. //修改桌子规则
  702. CMD_GP_C_ModifyTableRule = cc.Class({
  703. ctor: function () {
  704. this._name = "CMD_GP_C_ModifyTableRule";
  705. this.dwUserID = 0;
  706. this.dwRoomID = 0;
  707. //俱乐部规则
  708. this.llSitScore = 0; //参与分
  709. this.llStandScore = 0; //淘汰分
  710. this.dwBigRevRules = 0; //大局表情规则
  711. this.dwBigMinScore = 0; //大局表情起曾分
  712. this.dwBigCnt = 0; //大局百分比或固定数量
  713. this.dwSmallRevRules = 0; //小局表情规则
  714. this.dwSmallMinScore = 0; //小局表情起曾分
  715. this.dwSmallCnt = 0; //小局百分比或固定数量
  716. this.cbReturnType = 0; //反水类型
  717. this.bNegativeScore = 0; //反水类型
  718. this.dwMagnification = 0; //倍率
  719. this.szTag = ''; //标签
  720. this.len_szTag = 10 * cc.TCHAR_SIZE;
  721. },
  722. });
  723. //创建新桌
  724. CMD_GP_S_CreatSuccess = cc.Class({
  725. ctor: function () {
  726. this._name = "CMD_GP_S_CreatSuccess";
  727. this.dwRoomID = 0;
  728. this.dwClubID = 0;
  729. this.wKindID = 0;
  730. },
  731. });
  732. //加入房间
  733. CMD_GP_C_GetRoom = cc.Class({
  734. ctor: function () {
  735. this._name = "CMD_GP_C_GetRoom";
  736. this.dwUserID = 0;
  737. this.dwRoomID = 0;
  738. this.dwClubID = 0;
  739. },
  740. });
  741. //断线返回
  742. CMD_GP_S_Failed = cc.Class({
  743. ctor: function () {
  744. this._name = "CMD_GP_S_Failed";
  745. this.byRes = 0; //0 未找到房间 1 房间已满
  746. },
  747. });
  748. //断线返回
  749. CMD_GP_S_Msg = cc.Class({
  750. ctor: function () {
  751. this._name = "CMD_GP_S_Msg";
  752. this.szMsg = '';
  753. this.len_szMsg = 256 * cc.TCHAR_SIZE;
  754. },
  755. });
  756. //俱乐部房间
  757. CMD_GP_C_ClubRoom = cc.Class({
  758. ctor: function () {
  759. //this._name="CMD_GP_C_ClubRoom";
  760. this.dwClubID = 0;
  761. this.dwLeagueID = 0;
  762. },
  763. });
  764. //解散房间
  765. CMD_GP_C_DissClubRoom = cc.Class({
  766. ctor: function () {
  767. //this._name="CMD_GP_C_DissClubRoom";
  768. this.dwUserID = 0;
  769. this.dwClubID = 0;
  770. this.dwLeagueID = 0;
  771. this.dwRoomID = 0;
  772. this.byForce = 0;
  773. },
  774. });
  775. ServerRoomUserInfo = cc.Class({
  776. ctor: function () {
  777. this.dwUserID = 0;
  778. this.dwRoomID = 0;
  779. this.wChairID = 0;
  780. this.cbUserStatus = 0;
  781. },
  782. });
  783. ServerRoomInfo = cc.Class({
  784. ctor: function () {
  785. this.dwRoomID = 0;
  786. this.dwClubID = 0;
  787. this.byPartID = 0;
  788. this.wKindID = 0;
  789. this.dwRules = new Array(5);
  790. this.wMaxChairCount = 0;
  791. this.dwServerRules = 0;
  792. this.wProgress = 0;
  793. this.dwCreateTime = 0;
  794. this.dwCreaterID = 0;
  795. this.byPlayerCnt = 0;
  796. this.szRoomName = '';
  797. this.len_szRoomName = 16 * cc.TCHAR_SIZE;
  798. //俱乐部规则
  799. this.llSitScore = 0; //参与分
  800. this.llStandScore = 0; //淘汰分
  801. this.dwBigRevRules = 0; //大局表情规则
  802. this.dwBigMinScore = 0; //大局表情起曾分
  803. this.dwBigCnt = 0; //大局百分比或固定数量
  804. this.dwSmallRevRules = 0; //小局表情规则
  805. this.dwSmallMinScore = 0; //小局表情起曾分
  806. this.dwSmallCnt = 0; //小局百分比或固定数量
  807. this.cbReturnType = 0; //反水类型
  808. this.bNegativeScore = 0; //反水类型
  809. this.dwMagnification = 0; //倍率
  810. this.szTag = ''; //标签
  811. this.len_szTag = 10 * cc.TCHAR_SIZE;
  812. },
  813. });
  814. //房间列表
  815. CMD_GP_S_ClubRevenueInfo = cc.Class({
  816. ctor: function () {
  817. this._name = "CMD_GP_S_ClubRevenueInfo";
  818. this.dwClubID = 0; //房间ID
  819. this.dwMark = 0;
  820. this.dwLimit = 0;
  821. this.wRate = 0;
  822. this.wCnt = 0;
  823. this.byNoUpdateScore = 0;
  824. },
  825. });
  826. //房间列表
  827. CMD_GP_S_ClubRoomInfo = cc.Class({
  828. ctor: function () {
  829. //this._name="CMD_GP_S_ClubRoomInfo";
  830. this.bySeeNull = 0;
  831. this.byMemberCreat = 0;
  832. this.byNoChat = 0;
  833. this.dwClubID = 0; //房间ID
  834. this.wRoomCnt = 0;
  835. },
  836. });
  837. //玩家列表
  838. CMD_GP_S_ClubUserInfo = cc.Class({
  839. ctor: function () {
  840. //this._name="CMD_GP_S_ClubUserInfo";
  841. this.dwClubID = 0;
  842. this.wPlayerCnt = 0;
  843. this.UserInfo = null; //ServerRoomUserInfo
  844. },
  845. });
  846. CMD_GP_S_UsingCard = cc.Class({
  847. ctor: function () {
  848. // this._name="CMD_GP_S_UsingCard";
  849. this.lUsingCard = 0;
  850. },
  851. });
  852. CMD_GP_C_GetRoomEx = cc.Class({
  853. ctor: function () {
  854. // this._name="CMD_GP_C_GetRoomEx";
  855. this.dwClubID = new Array(10);
  856. this.dwRoomID = new Array(40);
  857. },
  858. });
  859. CMD_GP_C_GetRoomExRes = cc.Class({
  860. ctor: function () {
  861. // this._name="CMD_GP_C_GetRoomExRes";
  862. this.wClubCnt = 0;
  863. this.wRoomCnt = 0;
  864. this.dwClubID = new Array(10);
  865. this.wClubRoomCnt = new Array(10);
  866. //this.RoomInfo = new Array(50); ServerRoomInfo
  867. },
  868. });
  869. //查看代开
  870. CMD_GP_C_OwnRoom = cc.Class({
  871. ctor: function () {
  872. // this._name="CMD_GP_C_OwnRoom";
  873. this.dwUserID = 0;
  874. },
  875. });
  876. OwnRoomInfo = cc.Class({
  877. ctor: function () {
  878. // this._name="OwnRoomInfo";
  879. this.dwRoomID = 0;
  880. this.wKindID = 0;
  881. this.dwRules = new Array(5);
  882. this.dwServerRules = 0;
  883. this.wProgress = 0;
  884. this.dwCreatTime = 0;
  885. this.byPlayerCnt = 0;
  886. this.dwUserID = new Array(10);
  887. },
  888. });
  889. //代开房间列表
  890. CMD_GP_S_OwnRoomInfo = cc.Class({
  891. ctor: function () {
  892. // this._name="CMD_GP_S_OwnRoomInfo";
  893. this.wCnt = 0;
  894. this.RoomInfo = new Array();
  895. for (var i = 0; i < MAX_DK_ROOM; i++) this.RoomInfo[i] = new OwnRoomInfo();
  896. },
  897. });
  898. //////////////////////////////////////////////////////////////////////////
  899. //
  900. MDM_GP_MANAGER = 9999;
  901. SUB_GP_WARNING = 1; //查询金币场
  902. SUB_GP_DESTROY = 2; //查询重连(通用)
  903. CMD_GP_C_Warning = cc.Class({
  904. ctor: function () {
  905. // this._name="CMD_GP_C_Warning";
  906. this.bWarning = 0;
  907. },
  908. });