GameM.ts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. // Learn TypeScript:
  2. // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
  3. // Learn Attribute:
  4. // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
  5. // Learn life-cycle callbacks:
  6. // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
  7. import CommonData from "../datas/CommonData";
  8. import GlobalStorage from "../datas/GlobalStorage";
  9. import HttpM from "./HttpM";
  10. import AdM from "./AdM";
  11. import AudioM from "./AudioM";
  12. import ClubData from "../datas/ClubData";
  13. const { ccclass, property } = cc._decorator;
  14. @ccclass
  15. export default class GameM {
  16. /** 当前选中车 */
  17. static selCarMove: cc.Node = null
  18. /** 拖动结束位置车 */
  19. static otherCarMove: cc.Node = null
  20. static commonData: CommonData = CommonData.Instance
  21. static ClubData: ClubData = ClubData.Instance
  22. static globalStorage: GlobalStorage = GlobalStorage.Instance
  23. static httpM: HttpM = HttpM.Instance
  24. static adM: AdM = AdM.Instance
  25. static audioM: AudioM = AudioM.Instance
  26. }
  27. export enum VIDEO_TYPE {
  28. buyCar,
  29. turnTable,
  30. invest,
  31. investSpeed, //视频加速投资
  32. offLineDouble,
  33. newCarAward,
  34. gift_box,
  35. gift_redMoney, //飞船 获得元宝视频点
  36. gift_Prop, //飞船道具
  37. buyCarMainBtn, //主页 购买按钮视频按钮
  38. userLvUpAd, //用户等级提升奖励
  39. carLvUp, //看视频升级车等级
  40. taskRwardAd, //任务成就奖励领取
  41. hangUp, //挂机
  42. freshGet, //红包双倍领取
  43. freshOpenRed, //红包打开领取
  44. goVideo, //去看视频
  45. cashOut, //提现
  46. dailyGet, //每日领取
  47. dailyCash, //每日提现
  48. gift_gold, //飞船 获得金币视频点
  49. shopBuyCarBtn, //商店钱不够买车
  50. getTicket, //获取夺宝券
  51. join, //现金抽奖
  52. fight2Double, //战斗2双倍奖励
  53. clearCoolTime, //清除冷却时间
  54. clearShield, //清除护盾
  55. richFightAd, //大富翁 战斗结束全都要
  56. richCtrlAd, //大富翁 遥控卡视频
  57. richGetDiceAd, //大富翁 看视频获取骰子
  58. adRbProgressAd, //看视频拿红包 视频进度
  59. }
  60. export enum AUDIO_TYPE {
  61. bg = 'Background_music1', //背景音乐
  62. button = 'Button_click', //按钮点击音效
  63. runGetGold = 'Parking_money', //车过停车场音效
  64. compose = 'Vehicle_synthesis', //车辆合成音效
  65. giftFall = 'Gifts_fall', //盒子落下音效
  66. giftOpen = 'Gift_open', //盒子打开音效
  67. giftGetCar = 'Get_car', //盒子打开获得车的音效
  68. turntableDraw = 'turntable1', //转盘抽奖结束
  69. turntableDrawEnd = 'turntable_2', //转盘抽奖音效
  70. redMoneyOpen = 'Red_envelopes', //打开红包音效
  71. getGold = 'Get_gold', //获得金币音效
  72. purchaseCar = 'Purchase_car', //车辆购买的音效
  73. Airship = 'Airship', //打开飞艇音效
  74. ding = 'ding', //送助理玫瑰花的音效
  75. open_interface = 'open_interface', //打开礼包界面声音
  76. gaizhang = 'gaizhang', //盖章
  77. baozha = 'baozha', //工厂爆炸
  78. carSpeedUp = 'carSpeedUp', //汽车开始加速声音
  79. electricArc = 'electricArc', //电弧
  80. saveSuccess = 'saveSuccess', //存入银行成功
  81. build = 'build', //工厂建造
  82. work_0 = 'work_0',
  83. work_1 = 'work_1',
  84. work_2 = 'work_2',
  85. flower_0 = 'flower_0',
  86. flower_1 = 'flower_1',
  87. flower_2 = 'flower_2',
  88. hello_0 = 'hello_0',
  89. hello_1 = 'hello_1',
  90. hello_2 = 'hello_2',
  91. hello_3 = 'hello_3',
  92. hello_4 = 'hello_4',
  93. hello_5 = 'hello_5',
  94. hello_6 = 'hello_6',
  95. hello_7 = 'hello_7',
  96. hello_8 = 'hello_8',
  97. reward_0 = 'reward_0',
  98. reward_1 = 'reward_1',
  99. reward_2 = 'reward_2',
  100. skin_1001 = 'skin_1001',
  101. skin_1002 = 'skin_1002',
  102. skin_2001 = 'skin_2001',
  103. skin_2002 = 'skin_2002',
  104. skin_3001 = 'skin_3001',
  105. skin_3002 = 'skin_3002',
  106. //xiyou
  107. attack1 = 'attack1',
  108. attack2 = 'attack2',
  109. resist = 'resist',
  110. dodge = 'dodge',
  111. mate1_1 = 'mate1_1',
  112. mate1_2 = 'mate1_2',
  113. mate1_3 = 'mate1_3',
  114. mate2_1 = 'mate2_1',
  115. mate2_2 = 'mate2_2',
  116. mate2_3 = 'mate2_3',
  117. mate3_1 = 'mate3_1',
  118. mate4_1 = 'mate4_1',
  119. mate4_2 = 'mate4_2',
  120. mate5_1 = 'mate5_1',
  121. mate5_2 = 'mate5_2',
  122. talent = 'talent',
  123. fiveluck = 'fiveluck',
  124. fiveluckbgm = 'fiveluckbgm',
  125. fightBgm = 'fightBgm',
  126. victory = 'victory',
  127. fail = 'fail',
  128. box_open = 'box_open',
  129. flaw='flaw',
  130. wealthbgm='wealthbgm',
  131. wealthshield='wealthshield',
  132. wealthswim='wealthuseswim',
  133. wealthlaugh='wealthlaugh',
  134. sutrabgm='Sutra_BGM',
  135. sutracontactboss='Sutra_ContactBoss',
  136. sutradice='Sutra_Dice',
  137. sutraitemfly='Sutra_ItemFly',
  138. sutrapickup='Sutra_PickUP',
  139. sutratouchborder='Sutra_TouchBorder',
  140. sutratransfer='Sutra_Transfer',
  141. sutrawalk='Sutra_Walk',
  142. sutraanswersure='Sutra_AnswerCorrect',
  143. sutraanswererror='Sutra_AnswerError',
  144. }
  145. export enum Game_Quality {
  146. low = 0,
  147. mediumLow,
  148. medium,
  149. mediumHigh,
  150. high
  151. }