CMD_LogonServer.js 34 KB

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