CMD_LogonServer.js 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  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_GET_LOBBY_LIST = 80
  544. SUB_GP_FAILED = 100; //失败信息
  545. SUB_GP_QUERYRES = 101; //查询结果
  546. SUB_GP_CREATE_SUCCESS = 102; //创建查询结果
  547. SUB_GP_CLUB_ROOM = 103;
  548. SUB_GP_CLUB_USER_LIST = 104;
  549. SUB_GP_CLUB_DISS_SUC = 105;
  550. SUB_GP_ROOMCARD = 106;
  551. SUB_GP_AUTO_ROOM_SUC = 107;
  552. SUB_GP_CLUB_SET_SUC = 108; //自动创建配置成功
  553. SUB_GP_JOIN_ROOM_RES = 109;
  554. SUB_GP_OWN_ROOM_INFO = 110;
  555. SUB_GP_JOIN_ROOM_RES_G = 111; //加入房间返回
  556. SUB_GP_SERVER_TYPE_LIST = 112;
  557. SUB_GP_CLUB_REVENUE_INFO = 113;
  558. SUB_GP_GET_ROOMEX_RES = 114; //房间列表
  559. SUB_GP_S_GET_LOBBY_LIST = 130 //lobby
  560. SUB_GP_RES_MSG = 200;
  561. //查询金币场
  562. //查询金币场
  563. CMD_GP_C_Query_ByType = cc.Class({
  564. ctor: function () {
  565. this._name = "CMD_GP_C_Query_ByType";
  566. this.dwUserID = 0;
  567. this.wKindID = 0; //游戏ID
  568. this.wType = 0; //房间类型
  569. },
  570. });
  571. //查询重连
  572. CMD_GP_C_Relink = cc.Class({
  573. ctor: function () {
  574. this._name = "CMD_GP_C_Relink";
  575. this.dwUserID = 0;
  576. },
  577. });
  578. //查询
  579. CMD_GP_C_Query_UsingCard = cc.Class({
  580. ctor: function () {
  581. //this._name="CMD_GP_C_Query_UsingCard";
  582. this.dwUserID = 0;
  583. },
  584. });
  585. //俱乐部设置
  586. CMD_GP_C_ClubSet = cc.Class({
  587. ctor: function () {
  588. this._name = "CMD_GP_C_ClubSet";
  589. this.dwUserID = 0;
  590. this.dwClubID = 0;
  591. this.dwLeagueID = 0;
  592. this.bySeeNullRoom = 0; //成员仅见空房
  593. this.byMemberCreat = 0; //成员开房
  594. },
  595. });
  596. //俱乐部设置
  597. CMD_GP_C_ClubRoomSet = cc.Class({
  598. ctor: function () {
  599. this._name = "CMD_GP_C_ClubRoomSet";
  600. this.dwUserID = 0;
  601. this.dwClubID = 0;
  602. this.dwLeagueID = 0;
  603. this.byNoChat = 0; //成员仅见空房
  604. },
  605. });
  606. //俱乐部设置
  607. CMD_GP_C_ClubRevenueSet = cc.Class({
  608. ctor: function () {
  609. this._name = "CMD_GP_C_ClubRevenueSet";
  610. this.dwUserID = 0;
  611. this.dwClubID = 0;
  612. this.dwLeagueID = 0;
  613. this.dwMark = 0; //抽水模式 0每局 1第一句 2每局赢家 3每局大赢家 4(16)总局赢家 5总局大赢家
  614. this.dwLimit = 0; //最低抽水
  615. this.wRate = 0; //千分比
  616. this.wCnt = 0; //大赢家抽水个数
  617. this.byNoUpdateScore = 0; //不即时到账
  618. },
  619. });
  620. //俱乐部赠送
  621. CMD_GP_C_ClubGive = cc.Class({
  622. ctor: function () {
  623. this._name = "CMD_GP_C_ClubGive";
  624. this.dwUserID = 0;
  625. this.szPassWord = "";
  626. this.dwTagUserID = 0;
  627. this.lScore = 0; //金额
  628. this.byType = 0; //种类
  629. this.dwClubID1 = 0;
  630. this.dwClubID2 = 0;
  631. this.szRemark = "";//备注
  632. this.len_szRemark = cc.TCHAR_SIZE * 128;
  633. this.len_szPassWord = window.LEN_MD5 * cc.TCHAR_SIZE; //登录密码 66
  634. },
  635. });
  636. CMD_GP_C_ExitClub = cc.Class({
  637. ctor: function () {
  638. this._name = "CMD_GP_C_ExitClub";
  639. this.dwUserID = 0;
  640. this.dwClubID = 0;
  641. this.szPassWord = "";
  642. this.len_szPassWord = window.LEN_PASSWORD * cc.TCHAR_SIZE; //登录密码 66
  643. },
  644. });
  645. //断线返回
  646. CMD_GP_S_ReturnServer = cc.Class({
  647. ctor: function () {
  648. this._name = "CMD_GP_S_ReturnServer";
  649. this.wKindID = 0; //游戏类型
  650. this.wServerType = 0; //服务器类型
  651. this.llEnterScore = 0; //游戏类型
  652. this.wServerPort = 0;//房间端口
  653. this.szServerAddr = "";//房间地址
  654. this.byTipsReturn = 0; //是否提示重连
  655. this.len_szServerAddr = cc.TCHAR_SIZE * 32;
  656. },
  657. });
  658. //断线返回
  659. CMD_GP_S_ReturnRoom = cc.Class({
  660. ctor: function () {
  661. this._name = "CMD_GP_S_ReturnRoom";
  662. this.wKindID = 0; //游戏类型
  663. this.wServerType = 0; //服务器类型
  664. this.llEnterScore = 0; //游戏类型
  665. this.wServerPort = 0;//房间端口
  666. this.szServerAddr = "";//房间地址
  667. this.dwRoomID = 0; //房间号
  668. this.dwClubID = 0; //俱乐部
  669. this.byPartID = 0;
  670. this.len_szServerAddr = cc.TCHAR_SIZE * 32;
  671. },
  672. });
  673. //创建新桌
  674. CMD_GP_C_CreateRoom = cc.Class({
  675. ctor: function () {
  676. this._name = "CMD_GP_C_CreateRoom";
  677. this.dwUserID = 0;
  678. this.wKindID = 0;
  679. this.dwRules = new Array(5); //游戏规则
  680. this.dwServerRules = 0; //服务器规则
  681. this.dwClubID = 0; //俱乐部ID
  682. this.byPartID = 0; //俱乐部子ID
  683. this.szRoomName = '';
  684. this.dwRoomID = 0;
  685. this.len_szRoomName = 16 * cc.TCHAR_SIZE;
  686. //俱乐部规则
  687. this.cbClubKind = 0; //俱乐部类型
  688. this.llSitScore = 0; //参与分
  689. this.llStandScore = 0; //淘汰分
  690. this.dwBigRevRules = 0; //大局表情规则
  691. this.dwBigMinScore = 0; //大局表情起曾分
  692. this.dwBigCnt = 0; //大局百分比或固定数量
  693. this.dwSmallRevRules = 0; //小局表情规则
  694. this.dwSmallMinScore = 0; //小局表情起曾分
  695. this.dwSmallCnt = 0; //小局百分比或固定数量
  696. this.cbReturnType = 0; //反水类型
  697. this.bNegativeScore = 0; //反水类型
  698. this.dwMagnification = 0; //倍率
  699. this.szTag = ''; //标签
  700. this.len_szTag = 10 * cc.TCHAR_SIZE;
  701. },
  702. });
  703. //修改桌子规则
  704. CMD_GP_C_ModifyTableRule = cc.Class({
  705. ctor: function () {
  706. this._name = "CMD_GP_C_ModifyTableRule";
  707. this.dwUserID = 0;
  708. this.dwRoomID = 0;
  709. //俱乐部规则
  710. this.llSitScore = 0; //参与分
  711. this.llStandScore = 0; //淘汰分
  712. this.dwBigRevRules = 0; //大局表情规则
  713. this.dwBigMinScore = 0; //大局表情起曾分
  714. this.dwBigCnt = 0; //大局百分比或固定数量
  715. this.dwSmallRevRules = 0; //小局表情规则
  716. this.dwSmallMinScore = 0; //小局表情起曾分
  717. this.dwSmallCnt = 0; //小局百分比或固定数量
  718. this.cbReturnType = 0; //反水类型
  719. this.bNegativeScore = 0; //反水类型
  720. this.dwMagnification = 0; //倍率
  721. this.szTag = ''; //标签
  722. this.len_szTag = 10 * cc.TCHAR_SIZE;
  723. },
  724. });
  725. //创建新桌
  726. CMD_GP_S_CreatSuccess = cc.Class({
  727. ctor: function () {
  728. this._name = "CMD_GP_S_CreatSuccess";
  729. this.dwRoomID = 0;
  730. this.dwClubID = 0;
  731. this.wKindID = 0;
  732. },
  733. });
  734. //加入房间
  735. CMD_GP_C_GetRoom = cc.Class({
  736. ctor: function () {
  737. this._name = "CMD_GP_C_GetRoom";
  738. this.dwUserID = 0;
  739. this.dwRoomID = 0;
  740. this.dwClubID = 0;
  741. },
  742. });
  743. //断线返回
  744. CMD_GP_S_Failed = cc.Class({
  745. ctor: function () {
  746. this._name = "CMD_GP_S_Failed";
  747. this.byRes = 0; //0 未找到房间 1 房间已满
  748. },
  749. });
  750. //断线返回
  751. CMD_GP_S_Msg = cc.Class({
  752. ctor: function () {
  753. this._name = "CMD_GP_S_Msg";
  754. this.szMsg = '';
  755. this.len_szMsg = 256 * cc.TCHAR_SIZE;
  756. },
  757. });
  758. //俱乐部房间
  759. CMD_GP_C_ClubRoom = cc.Class({
  760. ctor: function () {
  761. //this._name="CMD_GP_C_ClubRoom";
  762. this.dwClubID = 0;
  763. this.dwLeagueID = 0;
  764. },
  765. });
  766. //解散房间
  767. CMD_GP_C_DissClubRoom = cc.Class({
  768. ctor: function () {
  769. //this._name="CMD_GP_C_DissClubRoom";
  770. this.dwUserID = 0;
  771. this.dwClubID = 0;
  772. this.dwLeagueID = 0;
  773. this.dwRoomID = 0;
  774. this.byForce = 0;
  775. },
  776. });
  777. ServerRoomUserInfo = cc.Class({
  778. ctor: function () {
  779. this.dwUserID = 0;
  780. this.dwRoomID = 0;
  781. this.wChairID = 0;
  782. this.cbUserStatus = 0;
  783. },
  784. });
  785. ServerRoomInfo = cc.Class({
  786. ctor: function () {
  787. this.dwRoomID = 0;
  788. this.dwClubID = 0;
  789. this.byPartID = 0;
  790. this.wKindID = 0;
  791. this.dwRules = new Array(5);
  792. this.wMaxChairCount = 0;
  793. this.dwServerRules = 0;
  794. this.wProgress = 0;
  795. this.dwCreateTime = 0;
  796. this.dwCreaterID = 0;
  797. this.byPlayerCnt = 0;
  798. this.szRoomName = '';
  799. this.len_szRoomName = 16 * cc.TCHAR_SIZE;
  800. //俱乐部规则
  801. this.llSitScore = 0; //参与分
  802. this.llStandScore = 0; //淘汰分
  803. this.dwBigRevRules = 0; //大局表情规则
  804. this.dwBigMinScore = 0; //大局表情起曾分
  805. this.dwBigCnt = 0; //大局百分比或固定数量
  806. this.dwSmallRevRules = 0; //小局表情规则
  807. this.dwSmallMinScore = 0; //小局表情起曾分
  808. this.dwSmallCnt = 0; //小局百分比或固定数量
  809. this.cbReturnType = 0; //反水类型
  810. this.bNegativeScore = 0; //反水类型
  811. this.dwMagnification = 0; //倍率
  812. this.szTag = ''; //标签
  813. this.len_szTag = 10 * cc.TCHAR_SIZE;
  814. },
  815. });
  816. //房间列表
  817. CMD_GP_S_ClubRevenueInfo = cc.Class({
  818. ctor: function () {
  819. this._name = "CMD_GP_S_ClubRevenueInfo";
  820. this.dwClubID = 0; //房间ID
  821. this.dwMark = 0;
  822. this.dwLimit = 0;
  823. this.wRate = 0;
  824. this.wCnt = 0;
  825. this.byNoUpdateScore = 0;
  826. },
  827. });
  828. //房间列表
  829. CMD_GP_S_ClubRoomInfo = cc.Class({
  830. ctor: function () {
  831. //this._name="CMD_GP_S_ClubRoomInfo";
  832. this.bySeeNull = 0;
  833. this.byMemberCreat = 0;
  834. this.byNoChat = 0;
  835. this.dwClubID = 0; //房间ID
  836. this.wRoomCnt = 0;
  837. },
  838. });
  839. //玩家列表
  840. CMD_GP_S_ClubUserInfo = cc.Class({
  841. ctor: function () {
  842. //this._name="CMD_GP_S_ClubUserInfo";
  843. this.dwClubID = 0;
  844. this.wPlayerCnt = 0;
  845. this.UserInfo = null; //ServerRoomUserInfo
  846. },
  847. });
  848. CMD_GP_S_UsingCard = cc.Class({
  849. ctor: function () {
  850. // this._name="CMD_GP_S_UsingCard";
  851. this.lUsingCard = 0;
  852. },
  853. });
  854. CMD_GP_C_GetRoomEx = cc.Class({
  855. ctor: function () {
  856. // this._name="CMD_GP_C_GetRoomEx";
  857. this.dwClubID = new Array(10);
  858. this.dwRoomID = new Array(40);
  859. },
  860. });
  861. CMD_GP_C_GetRoomExRes = cc.Class({
  862. ctor: function () {
  863. // this._name="CMD_GP_C_GetRoomExRes";
  864. this.wClubCnt = 0;
  865. this.wRoomCnt = 0;
  866. this.dwClubID = new Array(10);
  867. this.wClubRoomCnt = new Array(10);
  868. //this.RoomInfo = new Array(50); ServerRoomInfo
  869. },
  870. });
  871. //查看代开
  872. CMD_GP_C_OwnRoom = cc.Class({
  873. ctor: function () {
  874. // this._name="CMD_GP_C_OwnRoom";
  875. this.dwUserID = 0;
  876. },
  877. });
  878. OwnRoomInfo = cc.Class({
  879. ctor: function () {
  880. // this._name="OwnRoomInfo";
  881. this.dwRoomID = 0;
  882. this.wKindID = 0;
  883. this.dwRules = new Array(5);
  884. this.dwServerRules = 0;
  885. this.wProgress = 0;
  886. this.dwCreatTime = 0;
  887. this.byPlayerCnt = 0;
  888. this.dwUserID = new Array(10);
  889. },
  890. });
  891. //代开房间列表
  892. CMD_GP_S_OwnRoomInfo = cc.Class({
  893. ctor: function () {
  894. // this._name="CMD_GP_S_OwnRoomInfo";
  895. this.wCnt = 0;
  896. this.RoomInfo = new Array();
  897. for (var i = 0; i < MAX_DK_ROOM; i++) this.RoomInfo[i] = new OwnRoomInfo();
  898. },
  899. });
  900. //////////////////////////////////////////////////////////////////////////
  901. //
  902. MDM_GP_MANAGER = 9999;
  903. SUB_GP_WARNING = 1; //查询金币场
  904. SUB_GP_DESTROY = 2; //查询重连(通用)
  905. CMD_GP_C_Warning = cc.Class({
  906. ctor: function () {
  907. // this._name="CMD_GP_C_Warning";
  908. this.bWarning = 0;
  909. },
  910. });