CMD_LogonServer.js 34 KB

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