CMD_GameServer.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. //CMD_GameServer.js
  2. //////////////////////////////////////////////////////////////////////////////////
  3. //登录命令
  4. MDM_GR_LOGON = 1; //登录信息
  5. //登录模式
  6. SUB_GR_LOGON_USERID = 1; //I D 登录
  7. SUB_GR_LOGON_MOBILE = 2; //手机登录
  8. SUB_GR_LOGON_ACCOUNTS = 3; //帐户登录
  9. //登录结果
  10. SUB_GR_LOGON_SUCCESS = 100; //登录成功
  11. SUB_GR_LOGON_ERROR = 101; //登录失败
  12. SUB_GR_LOGON_FINISH = 102; //登录完成
  13. //升级提示
  14. SUB_GR_UPDATE_NOTIFY = 200; //升级提示
  15. //I D 登录
  16. CMD_GR_LogonUserID = cc.Class({
  17. ctor:function() {
  18. this.dwPlazaVersion = cc.VERSION_PLAZA; //广场版本
  19. this.dwFrameVersion = cc.VERSION_PLAZA; //框架版本
  20. this.dwProcessVersion = 16777216; //进程版本
  21. this.dwUserID = 0; //用户 I D
  22. this.szPassword = ""; //登录密码
  23. this.szServerPasswd = ""; //房间密码
  24. this.szMachineID = ""; //机器序列
  25. this.wKindID = 0; //类型索引
  26. this.len_szPassword = window.LEN_MD5*cc.TCHAR_SIZE; //登录密码
  27. this.len_szServerPasswd = 33*cc.TCHAR_SIZE; //房间密码
  28. this.len_szMachineID = 33*cc.TCHAR_SIZE; //机器序列
  29. },
  30. });
  31. //登陆失败
  32. CMD_GR_LogonFailure = cc.Class({
  33. ctor:function() {
  34. this._name = "CMD_GR_LogonFailure";
  35. this.lErrorCode = 0;
  36. this.szErrorDescribe = '';
  37. this.len_szErrorDescribe = 256;
  38. },
  39. });
  40. //////////////////////////////////////////////////////////////////////////////////
  41. //配置命令
  42. MDM_GR_CONFIG = 2; //配置信息
  43. SUB_GR_CONFIG_COLUMN = 100; //列表配置
  44. SUB_GR_CONFIG_SERVER = 101; //房间配置
  45. SUB_GR_CONFIG_PROPERTY = 102; //道具配置
  46. SUB_GR_CONFIG_FINISH = 103; //配置完成
  47. SUB_GR_CONFIG_USER_RIGHT = 104; //玩家权限
  48. //房间配置
  49. CMD_GR_ConfigServer = cc.Class({
  50. ctor:function() {
  51. //房间属性
  52. this.wTableCount = 0; //桌子数目
  53. this.wChairCount = 0; //椅子数目
  54. //房间配置
  55. this.wServerType = 0; //房间类型
  56. this.dwServerRule = 0; //房间规则
  57. },
  58. });
  59. //////////////////////////////////////////////////////////////////////////////////
  60. //用户命令
  61. MDM_GR_USER = 3; //用户信息
  62. //用户动作
  63. SUB_GR_USER_RULE = 1; //用户规则
  64. SUB_GR_USER_LOOKON = 2; //旁观请求
  65. SUB_GR_USER_SITDOWN = 3; //坐下请求
  66. SUB_GR_USER_STANDUP = 4; //起立请求
  67. SUB_GR_USER_INVITE = 5; //用户邀请
  68. SUB_GR_USER_INVITE_REQ = 6; //邀请请求
  69. SUB_GR_USER_REPULSE_SIT = 7; //拒绝玩家坐下
  70. SUB_GR_USER_KICK_USER = 8; //踢出用户
  71. SUB_GR_USER_INFO_REQ = 9; //请求用户信息
  72. SUB_GR_USER_CHAIR_REQ = 10; //请求更换位置
  73. SUB_GR_USER_CHAIR_INFO_REQ = 11; //请求椅子用户信息
  74. SUB_GR_USER_WAIT_DISTRIBUTE = 12;
  75. SUB_GR_USER_ENTER_ROOM = 13; //进入房间
  76. //用户状态
  77. SUB_GR_USER_ENTER = 100; //用户进入
  78. SUB_GR_USER_SCORE = 101; //用户分数
  79. SUB_GR_USER_STATUS = 102; //用户状态
  80. SUB_GR_REQUEST_FAILURE = 103; //请求失败
  81. SUB_GR_USER_GAME_DATA = 104; //用户游戏数据
  82. //聊天命令
  83. SUB_GR_USER_CHAT = 201; //聊天消息
  84. SUB_GR_USER_EXPRESSION = 202; //表情消息
  85. SUB_GR_WISPER_CHAT = 203; //私聊消息
  86. SUB_GR_WISPER_EXPRESSION = 204; //私聊表情
  87. SUB_GR_COLLOQUY_CHAT =205; //会话消息
  88. SUB_GR_COLLOQUY_EXPRESSION =206; //会话表情
  89. //道具命令
  90. SUB_GR_PROPERTY_BUY = 300; //购买道具
  91. SUB_GR_PROPERTY_SUCCESS = 301; //道具成功
  92. SUB_GR_PROPERTY_FAILURE = 302; //道具失败
  93. SUB_GR_PROPERTY_MESSAGE = 303; //道具消息
  94. SUB_GR_PROPERTY_EFFECT = 304; //道具效应
  95. SUB_GR_PROPERTY_TRUMPET = 305; //喇叭消息
  96. SUB_GR_USER_QUEUE_REQ = 400; //请求进入等待队列
  97. SUB_GR_USER_QUEUE = 401; //进入等待队列
  98. SUB_GR_USER_QUEUE_FIELD = 402; //等待队列请求失败
  99. SUB_GR_USER_QUEUE_COM = 404; //队列分配完毕
  100. SUB_GR_USER_QUEUE_REQ_AGAIN = 405; //再次请求队列
  101. SUB_GR_USER_CONTINUE_GAME = 406; //玩家游戏内继续游戏
  102. //坐下请求
  103. CMD_GR_UserSitDown = cc.Class({
  104. ctor:function() {
  105. this.wTableID = 0; //桌子位置
  106. this.wChairID = 0; //椅子位置
  107. this.szPassword = ""; //桌子密码
  108. this.len_szPassword = window.LEN_PASSWORD*cc.TCHAR_SIZE; //桌子密码
  109. },
  110. });
  111. //坐下请求
  112. CMD_GR_UserEnterRoom = cc.Class({
  113. ctor:function() {
  114. this.dwRoomID = 0;
  115. this.dwClubID = 0;
  116. },
  117. });
  118. //////////////////////////////////////////////////////////////////////////////////
  119. //状态命令
  120. MDM_GR_STATUS = 4; //状态信息
  121. SUB_GR_TABLE_INFO = 100; //桌子信息
  122. SUB_GR_TABLE_STATUS = 101; //桌子状态
  123. //桌子信息
  124. CMD_GR_TableInfo = cc.Class({
  125. ctor:function() {
  126. //this._name = 'CMD_GR_TableInfo'
  127. this.wTableCount = 0; //桌子数目
  128. this.TableStatusArray = null; //桌子状态 tagTableStatus array
  129. },
  130. });
  131. //桌子状态
  132. CMD_GR_TableStatus = cc.Class({
  133. ctor:function() {
  134. // this._name = 'CMD_GR_TableStatus'
  135. this.wTableID = 0; //桌子号码
  136. this.TableStatus = new tagTableStatus(); //桌子状态
  137. },
  138. });
  139. //////////////////////////////////////////////////////////////////////////////////
  140. //银行命令
  141. MDM_GR_INSURE = 5; //用户信息
  142. //银行命令
  143. SUB_GR_ENABLE_INSURE_REQUEST = 1 //开通银行
  144. SUB_GR_QUERY_INSURE_INFO = 2; //查询银行
  145. SUB_GR_SAVE_SCORE_REQUEST = 3; //存款操作
  146. SUB_GR_TAKE_SCORE_REQUEST = 4; //取款操作
  147. SUB_GR_TRANSFER_SCORE_REQUEST = 5; //取款操作
  148. SUB_GR_QUERY_USER_INFO_REQUEST = 6; //查询用户
  149. SUB_GR_USER_INSURE_INFO = 100; //银行资料
  150. SUB_GR_USER_INSURE_SUCCESS = 101; //银行成功
  151. SUB_GR_USER_INSURE_FAILURE = 102; //银行失败
  152. SUB_GR_USER_TRANSFER_USER_INFO = 103; //用户资料
  153. SUB_GR_USER_INSURE_ENABLE_RESULT = 104; //开通结果
  154. //////////////////////////////////////////////////////////////////////////////////
  155. //管理命令
  156. MDM_GR_MANAGE = 9; //管理命令
  157. SUB_GR_SEND_WARNING = 1; //发送警告
  158. SUB_GR_SEND_MESSAGE = 2; //发送消息
  159. SUB_GR_LOOK_USER_IP = 3; //查看地址
  160. SUB_GR_KILL_USER = 4; //踢出用户
  161. SUB_GR_LIMIT_ACCOUNS = 5; //禁用帐户
  162. SUB_GR_SET_USER_RIGHT = 6; //权限设置
  163. //房间设置
  164. SUB_GR_QUERY_OPTION = 7; //查询设置
  165. SUB_GR_OPTION_SERVER = 8; //房间设置
  166. SUB_GR_OPTION_CURRENT = 9; //当前设置
  167. SUB_GR_LIMIT_USER_CHAT = 10; //限制聊天
  168. SUB_GR_KICK_ALL_USER = 11; //踢出用户
  169. SUB_GR_DISMISSGAME = 12; //解散游戏
  170. //////////////////////////////////////////////////////////////////////////////////
  171. //////////////////////////////////////////////////////////////////////////////////
  172. //比赛命令
  173. MDM_GR_MATCH = 10; //比赛命令
  174. SUB_GR_MATCH_FEE = 400; //报名费用
  175. SUB_GR_MATCH_NUM = 401; //等待人数
  176. SUB_GR_LEAVE_MATCH = 402; //退出比赛
  177. SUB_GR_MATCH_INFO = 403; //比赛信息
  178. SUB_GR_MATCH_WAIT_TIP = 404; //等待提示
  179. SUB_GR_MATCH_RESULT = 405; //比赛结果
  180. SUB_GR_MATCH_STATUS = 406; //比赛状态
  181. SUB_GR_MATCH_DESC = 408; //比赛描述
  182. SUB_GR_MATCH_GOLDUPDATE = 409; //金币更新
  183. SUB_GR_MATCH_ELIMINATE = 410 ; //比赛淘汰
  184. //////////////////////////////////////////////////////////////////////////////////
  185. //游戏命令
  186. MDM_GF_GAME = 200; //游戏命令
  187. //////////////////////////////////////////////////////////////////////////////////
  188. //框架命令
  189. MDM_GF_FRAME = 100; //框架命令
  190. //用户命令
  191. SUB_GF_GAME_OPTION = 1; //游戏配置
  192. SUB_GF_USER_READY = 2; //用户准备
  193. SUB_GF_LOOKON_CONFIG = 3; //旁观配置
  194. SUB_GF_GPS_INFO_SAVE = 4; //地理位置
  195. SUB_GF_GPS_INFO_GET = 5; //地理位置
  196. SUB_GF_LOOKON_SIT = 6;
  197. //聊天命令
  198. SUB_GF_USER_CHAT = 10 //用户聊天
  199. SUB_GF_USER_EXPRESSION = 11 //用户表情
  200. SUB_GF_USER_VOICE = 12 //用户语音
  201. SUB_GF_USER_VOICE_A = 13 //用户语音
  202. //游戏信息
  203. SUB_GF_GAME_STATUS = 100; //游戏状态
  204. SUB_GF_GAME_SCENE = 101; //游戏场景
  205. SUB_GF_LOOKON_STATUS = 102; //旁观状态
  206. SUB_GF_GPS_GET_RES = 110; //地理位置
  207. //系统消息
  208. SUB_GF_SYSTEM_MESSAGE = 200; //系统消息
  209. SUB_GF_ACTION_MESSAGE = 201; //动作消息
  210. //////////////////////////////////////////////////////////////////////////////////
  211. //钻石框架
  212. MDM_GF_CARDROOM = 101; //钻石命令
  213. SUB_GF_CREATER_DISSOLVE = 1; //房主解散
  214. SUB_GF_USER_DISSOLVE = 2; //申请解散
  215. SUB_GF_USER_CHOOSE = 3 ; //解散操作
  216. SUB_GF_ROOM_INFO = 100; //游戏状态
  217. SUB_GF_ROOM_STATUS = 101; //游戏状态
  218. SUB_GF_ROOM_GAME_FINISH = 102;
  219. SUB_GF_ROOM_DISSOLVE = 105; //房主解散
  220. SUB_GF_ROOM_USER_DISSOLVE = 106 //发起解散
  221. SUB_GF_ROOM_DISSOLVE_STATUS = 107; //解散状态
  222. SUB_GF_ROOM_USERCHOOSE = 108; //用户投票
  223. SUB_GF_ROOM_DISSOLVE_RES = 109; //投票结果
  224. //游戏配置
  225. CMD_GF_UserChoose = cc.Class({
  226. ctor:function() {
  227. this._name = 'CMD_GF_UserChoose'
  228. this.byChoose = 0;
  229. },
  230. });
  231. CMD_GF_UserChooseRes = cc.Class({
  232. ctor:function() {
  233. this._name = 'CMD_GF_UserChooseRes'
  234. this.wChairID=0;
  235. this.byRes=0;
  236. },
  237. });
  238. CMD_GF_RoomInfo = cc.Class({
  239. ctor:function() {
  240. this._name = 'CMD_GF_RoomInfo'
  241. this.dwRoomID=0; //房间ID
  242. this.dwRoomID2=0; //房间ID
  243. this.dwCreaterID=0; //房主ID
  244. this.dwRulesArr=new Array(5); //游戏规则
  245. this.dwServerRules=0; //游戏规则
  246. this.dwClubID=0;
  247. this.szRoomName='';
  248. this.len_szRoomName = 16*cc.TCHAR_SIZE;
  249. },
  250. });
  251. CMD_GF_RoomStatus = cc.Class({
  252. ctor:function() {
  253. //this._name = 'CMD_GF_RoomStatus'
  254. this.wProgress = 0; //当前局数
  255. this.bLockArr = null;
  256. },
  257. });
  258. //申请解散
  259. CMD_GF_UserDissolve = cc.Class({
  260. ctor:function() {
  261. this._name = 'CMD_GF_UserDissolve'
  262. this.dwDisUserID = 0; //申请玩家ID
  263. this.dwAllCountDown = 0;
  264. },
  265. });
  266. //解散状态
  267. CMD_GF_RoomDissolve = cc.Class({
  268. ctor:function() {
  269. this._name = 'CMD_GF_RoomDissolve'
  270. this.dwDisUserID = 0; //申请玩家ID
  271. this.dwCountDown = 0;
  272. this.dwAllCountDown = 0;
  273. this.byChoose = null; //玩家选择 0未选 1同意 2否决
  274. },
  275. });
  276. //解散结果
  277. CMD_GF_DissolveRes = cc.Class({
  278. ctor:function() {
  279. this._name = 'CMD_GF_DissolveRes'
  280. this.bDissolve = 0; //申请结果
  281. },
  282. });
  283. //////////////////////////////////////////////////////////////////////////////////
  284. MDM_CM_SYSTEM = 1000; //系统命令
  285. SUB_CM_SYSTEM_MESSAGE = 1; //系统消息
  286. SUB_CM_ACTION_MESSAGE = 2; //动作消息
  287. SUB_CM_DOWN_LOAD_MODULE = 3; //下载消息
  288. //类型掩码
  289. SMT_CHAT = 0x0001; //聊天消息
  290. SMT_EJECT = 0x0002; //弹出消息
  291. SMT_GLOBAL = 0x0004; //全局消息
  292. SMT_PROMPT = 0x0008; //提示消息
  293. SMT_TABLE_ROLL = 0x0010; //滚动消息
  294. //控制掩码
  295. SMT_CLOSE_ROOM = 0x0100; //关闭房间
  296. SMT_CLOSE_GAME = 0x0200; //关闭游戏
  297. SMT_CLOSE_LINK = 0x0400; //中断连接
  298. CMD_CM_SystemMessage = cc.Class({
  299. ctor:function() {
  300. //this._name = 'CMD_CM_SystemMessage'
  301. this.wType = 0; //消息类型
  302. this.wLength = 0; //消息长度
  303. this.szString = ''; //消息内容
  304. this.len_szString = 1024;
  305. },
  306. });
  307. //////////////////////////////////////////////////////////////////////////////////
  308. //心跳命令
  309. MDM_KN_COMMAND = 0
  310. SUB_KN_CLIENT_HEART = 3;
  311. //////////////////////////////////////////////////////////////////////////////////
  312. //用户状态
  313. CMD_GR_UserStatus = cc.Class({
  314. ctor:function() {
  315. //this._name='CMD_GR_UserStatus'
  316. this.dwUserID = 0; //用户标识
  317. this.UserStatus = new tagUserStatus(); //用户状态
  318. },
  319. });
  320. //游戏配置
  321. CMD_GF_GameOption = cc.Class({
  322. ctor:function() {
  323. // this._name = "CMD_GF_GameOption"
  324. this.cbAllowLookon = 0; //旁观标志
  325. this.dwFrameVersion = 0; //框架版本
  326. this.dwClientVersion = 0; //游戏版本
  327. },
  328. });
  329. //游戏环境
  330. CMD_GF_GameStatus = cc.Class({
  331. ctor:function() {
  332. this.bGameStatus = 0; //游戏状态
  333. this.bAllowLookon = 1; //允许旁观
  334. },
  335. });
  336. //在线信息
  337. SUB_GR_KINE_ONLINE = 300; //类型在线
  338. SUB_GR_SERVER_ONLINE = 301; //房间在线
  339. SUB_GR_ONLINE_FINISH = 302; //在线完成
  340. //+++++++录音和播放需要添加的内容 start++++++
  341. //手机端使用的声音索引结构体
  342. CMD_GF_C_UserVoice = cc.Class({
  343. ctor:function(){
  344. this._name = 'CMD_GF_C_UserVoice'
  345. this.byPlatform = 0; //0原生 1微信H5
  346. this.dwTargetUserID = 0;
  347. this.szVID = '';
  348. this.len_szVID = 256*cc.TCHAR_SIZE;
  349. },
  350. });
  351. CMD_GF_C_UserVoice_A = cc.Class({
  352. ctor:function(){
  353. this._name = 'CMD_GF_C_UserVoice_A'
  354. this.byPlatform = 0; //0原生 1微信H5
  355. this.dwTargetUserID = 0;
  356. this.szVID = '';
  357. this.len_szVID = 2560*cc.TCHAR_SIZE;
  358. },
  359. });
  360. CMD_GF_S_UserVoice = cc.Class({
  361. ctor:function(){
  362. //this._name = 'CMD_GF_S_UserVoice'
  363. this.byPlatform = 0;
  364. this.dwSendUserID = 0;
  365. this.dwTargetUserID = 0;
  366. this.szVID = '';
  367. this.len_szVID = 256*cc.TCHAR_SIZE;
  368. },
  369. });
  370. CMD_GF_S_UserVoice_A = cc.Class({
  371. ctor:function(){
  372. //this._name = 'CMD_GF_S_UserVoice'
  373. this.byPlatform = 0;
  374. this.dwSendUserID = 0;
  375. this.dwTargetUserID = 0;
  376. this.szVID = '';
  377. this.len_szVID = 2560*cc.TCHAR_SIZE;
  378. },
  379. });
  380. //+++++++录音和播放需要添加的内容 end++++++
  381. //快捷短语
  382. CMD_GF_C_UserExpression = cc.Class({
  383. ctor:function(){
  384. this.wItemIndex = 0; //短语索引
  385. this.dwTargetUserID = 0; //目标用户
  386. },
  387. });
  388. //快捷短语
  389. CMD_GR_S_UserExpression = cc.Class
  390. ({
  391. ctor:function(){
  392. this._name = "CMD_GR_S_UserExpression"
  393. this.wItemIndex = 0; //短语索引
  394. this.dwSendUserID = 0; //发送用户
  395. this.dwTargetUserID = 0; //目标用户
  396. },
  397. });
  398. //用户聊天
  399. CMD_GF_C_UserChat = cc.Class
  400. ({
  401. ctor:function(){
  402. this.wChatLength = 0; //信息长度
  403. this.dwChatColor = 0; //信息颜色
  404. this.dwTargetUserID = 0; //目标用户
  405. this.szChatString = ''; //聊天信息
  406. this.len_szChatString = 256;
  407. },
  408. });
  409. //用户聊天
  410. CMD_GF_S_UserChat = cc.Class({
  411. ctor:function(){
  412. this._name = 'CMD_GF_S_UserChat'
  413. this.wChatLength = 0; //信息长度
  414. this.dwChatColor = 0; //信息颜色
  415. this.dwSendUserID = 0; //发送用户
  416. this.dwTargetUserID = 0; //目标用户
  417. this.szChatString = ''; //聊天信息
  418. this.len_szChatString = 128*cc.TCHAR_SIZE;
  419. },
  420. });
  421. //////////////////////////////////////////////////////////////////////////////////
  422. //携带信息
  423. //其他信息
  424. DTP_GR_TABLE_PASSWORD = 1; //桌子密码
  425. //用户属性
  426. DTP_NULL = 0;
  427. DTP_GR_NICK_NAME = 10; //用户昵称
  428. DTP_GR_GROUP_NAME = 11; //社团名字
  429. DTP_GR_UNDER_WRITE = 12; //个性签名
  430. DTP_GR_MOBILE_PHONE = 14; //手机号码
  431. DTP_GR_IP = 15; //IP地址
  432. //附加信息
  433. DTP_GR_USER_NOTE = 20; //用户备注
  434. DTP_GR_CUSTOM_FACE = 21; //自定头像
  435. tagDataDescribe = cc.Class({
  436. ctor :function () {
  437. // this._name='tagDataDescribe'
  438. this.wDataSize = 0;
  439. this.wDataDescribe = 0;
  440. },
  441. });
  442. SUB_S_TIMER = 300; //时间命令
  443. //用户分数
  444. CMD_GR_UserScore = cc.Class({
  445. ctor:function() {
  446. this._name='CMD_GR_UserScore'
  447. this.dwUserID = 0; //用户标识
  448. this.UserScore = new tagUserScore(); //积分信息
  449. },
  450. });
  451. //起立请求
  452. CMD_GR_UserStandUp = cc.Class({
  453. ctor:function() {
  454. this.wTableID = 0; //桌子位置
  455. this.wChairID = 0; //椅子位置
  456. this.cbForceLeave = 0; //强行离开
  457. },
  458. });
  459. //请求失败
  460. CMD_GR_RequestFailure = cc.Class({
  461. ctor:function() {
  462. this.dwNothing = 0;
  463. this.szDescribeString = ""; //描述信息
  464. this.len_szDescribeString = 256*cc.TCHAR_SIZE; //描述信息
  465. },
  466. });
  467. //费用提醒
  468. CMD_GR_Match_Fee = cc.Class({
  469. ctor:function() {
  470. this.lMatchFee = 0; //报名费用
  471. this.szNotifyContent = ""; //提示内容
  472. this.index_lMatchFee = 0;
  473. this.index_szNotifyContent = 4;
  474. },
  475. getSize:function()
  476. {
  477. return 128*cc.TCHAR_SIZE+4;
  478. },
  479. });
  480. //金币更新
  481. CMD_GR_MatchGoldUpdate = cc.Class({
  482. ctor:function() {
  483. this.lCurrGold = 0; //当前金币
  484. this.lCurrIngot = 0; //当前元宝
  485. this.dwCurrExprience = 0; //当前经验
  486. this.index_lCurrGold = 0; //当前金币
  487. this.index_lCurrIngot = 8; //当前元宝
  488. this.index_dwCurrExprience = 16; //当前经验
  489. },
  490. getSize:function ()
  491. {
  492. return 20;
  493. },
  494. });
  495. CMD_GR_S_LookOnUser = cc.Class({
  496. ctor:function(){
  497. this._name = 'LookOnUser'
  498. this.dwUserChairID = 0;
  499. },
  500. });