GameEnum.js 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. // 在需要使用的项目里, 直接这样require
  2. // var RoomState = require("asdasd").RoomState
  3. var RoomState = cc.Enum({
  4. Invaild: 0,
  5. Lock: 1,
  6. UnLock: 2,
  7. Update: 3,
  8. Full: 4
  9. });
  10. //用户信息页面不同显示内容
  11. var UserInformationType = cc.Enum({
  12. Mine: 0,
  13. Boss: 1,
  14. MyArtist: 2,
  15. ArtistFree: 3,
  16. OtherArtist: 4
  17. });
  18. //职业种类
  19. var UserJobType = cc.Enum({
  20. None: 0, //没有选择职业
  21. MC: 1, //主持人
  22. Dancer: 2, //舞者
  23. Singer: 3, //歌手
  24. Actor: 4, //演员
  25. Electronic: 5 //电竞人员
  26. });
  27. //互动类型
  28. var UserInteractionType = cc.Enum({
  29. Common: 0, //普通互动
  30. PlayUp: 1, //讨好
  31. Revolt: 2, //反抗
  32. Pacify: 3, //安抚
  33. Order: 4, //使唤
  34. });
  35. //亲密度心形显示类型
  36. var UserIntimacyType = cc.Enum({
  37. Empty: 0, //没有互动
  38. Full: 2, //全满
  39. Left: 6, //左边完成
  40. Right: 9, //右边完成
  41. });
  42. /**
  43. * 网络回调状态码 code
  44. */
  45. var ResponseStateCode = cc.Enum({
  46. LOGIN_INVALIDATE: -5,
  47. OK: 0,
  48. });
  49. //用户信息页相关操作,1:赎身,2:抢夺,3:签约, 4: 解雇
  50. var UserInformationRelateOptType = cc.Enum({
  51. None: 0,
  52. Redeem: 1,
  53. Loot: 2,
  54. Sign: 3,
  55. Fire: 4,
  56. });
  57. //主线任务状态[0 : 未完成, 1 : 完成可领取, 2 : 完成已经领取]
  58. var QuestMainMissionType = cc.Enum({
  59. NoFinished: 0,
  60. CanGain: 1,
  61. AlreadyGet: 2
  62. });
  63. //每日任务状态[0 : 完成可领取, 1 : 未完成, 2 : 完成已经领取]
  64. var QuestDailyMissionType = cc.Enum({
  65. CanGain: 0,
  66. NoFinished: 1,
  67. AlreadyGet: 2
  68. });
  69. //新手教程提示框文字[0 : 上方箭头在左, 1 : 上方箭头在右, 2 : 下方箭头在左]
  70. var HomeGuideDialogType = cc.Enum({
  71. TopLeft: 0,
  72. TopRight: 1,
  73. BottomLeft: 2
  74. });
  75. //新手教程箭头方向[0 : 上, 1 : 右, 2 : 下,3 : 左]
  76. var HomeGuideArrowType = cc.Enum({
  77. Top: 0,
  78. Right: 1,
  79. Bottom: 2,
  80. Left: 3
  81. });
  82. var ReportType = cc.Enum({
  83. ID: "roomId",
  84. // 上报事件类型, 0是普通上报, 1是升级建筑
  85. Event: "cmd",
  86. Seq: "seq",
  87. /** 总金额 */
  88. Gold: "gold",
  89. /** 星星数 */
  90. Stars: "s",
  91. /** 建筑 */
  92. Build: "userRooms",
  93. /** 建筑 */
  94. UnLockBuild: "ub",
  95. /** 建筑等级 */
  96. Level: "roomLevel",
  97. /** 事件戳 */
  98. Timestamp: "t",
  99. /** 未收金币的次数 */
  100. NotPickupCoinCount: "cc",
  101. /** 手动点击获取金币次数 */
  102. ClickCount: "clickCount"
  103. });
  104. const GameNotificationKey = cc.Enum({
  105. /** 显示好友系统 */
  106. ShowFriendSystem: "show_friend_system",
  107. /** 访问好友家园 */
  108. VisitFriendHome: "visit_friend_home",
  109. /** 返回自己家园 */
  110. BackOwnerHome: "back_owner_home",
  111. /** 处理通过点击分享链接进入游戏的各种操作 */
  112. ProcessShareAction: "process_share_action",
  113. /** 显示用户信息 */
  114. ShowUserInfomation: "show_user_information",
  115. /** 升级建筑 */
  116. RoomUpdate: "room_update",
  117. /** 重新刷新首页数据 */
  118. HomeReloadData: "home_reload_data",
  119. /** 更新首页数据 */
  120. HomeUpdateData: "home_update_data",
  121. /** 数据上报 */
  122. UserReportGross: "user_report_gross",
  123. /** 刷新好友列表 */
  124. RefreshFriendList: "refresh_friend_list",
  125. /** 打开亲密度相关页面 */
  126. ShowInteraction: "show_user_interaction",
  127. ShowJobPage: 'show_job_page',
  128. BeginArtistTrain: 'BeginArtistTrain',
  129. /** 用户收取金币 */
  130. UserCollectCoin: "user_collect_coin",
  131. /** 打开亲密度相关页面 */
  132. RefreshUserInformation: 'RefreshUserInformation',
  133. /** 培养完成 */
  134. ArtistTrainCompletion: 'ArtistTrainCompletion',
  135. /** 播放成功的动画 */
  136. PlaySuccessAnimation: "PlaySuccessAnimation",
  137. ShowJobPageFromTalent: "show_job_page_from_talent",
  138. /** 显示物品描述 */
  139. ShowPropDesc: "show_prop_desc",
  140. /** 关闭物品描述 */
  141. HidePropDesc: "hide_prop_desc",
  142. /** 刷新背包列表未选中状态*/
  143. RefreshPackItem: "refresh_item_normal",
  144. /** 打开背包*/
  145. OpenPack: "open_pack",
  146. /** 装备卡片*/
  147. InsertCardToUser: "insert_card_to_user",
  148. /** 刷新背包物品数量*/
  149. RefreshPackInfo: "refresh_pack_info",
  150. /** 刷新入驻艺人列表样式 */
  151. ChangeArtistResidentState: "ChangeArtistResidentState",
  152. /** 刷新插卡界面显示*/
  153. RefreshInsertCardsInfo: "refresh_insert_cards_info",
  154. /** 全局history后退 */
  155. HistoryBack: "history_back",
  156. ShowCityMap: "show_citymap",
  157. /** 触发入驻成功通知 */
  158. NoticeRoleOpt: "NoticeRoleOpt",
  159. /** 入驻艺人 */
  160. ResidentArtist: "ResidentArtist",
  161. /** 更新我的入驻艺人列表 */
  162. RefreshLevelHomeArtistList: "RefreshLevelHomeArtistList",
  163. RefreshArtistManagerList: "RefreshArtistManagerList",
  164. CurrentCompanyMax: 'current_company_max',
  165. // 单个建筑满级时的通知
  166. LevelHomeItemBuildingFull: "LevelHomeItemBuildingFull",
  167. // 当所有建筑都满级时的通知
  168. LevelHomeItemBuildingAllFull: "LevelHomeItemBuildingAllFull",
  169. // 刷新入驻艺人列表
  170. RefreshResidentArtistList: "RefreshResidentArtistList",
  171. showCatFlyAnimation: 'show_cat_fly_animation',
  172. afterCatFly: 'after_cat_fly',
  173. PlayUpdateCoinAnimation: 'PlayCoinAnimation',
  174. ReloadLevelHomeData: "ReloadLevelHomeData",
  175. ResetLevelHomePaddingBottom: 'ResetLevelHomePaddingBottom',
  176. // 星探任务领取奖励通知
  177. TalentGainAward: 'TalentGainAward',
  178. // 离线收益动画
  179. HandleOfflineIncomeAnim: 'HandleOfflineIncomeAnim',
  180. //点击招财猫
  181. ClickAddMoney: 'click_add_money',
  182. //解锁、升级建筑刷新数据
  183. RefreshBuildingData: 'refresh_building_data',
  184. //tabbar点击招财猫
  185. TabbarClickCat: 'tabbar_click_cat',
  186. //楼层一级的时候解锁
  187. UnlockLevelHome: 'unlock_level_home',
  188. //自动点击加金币
  189. AutoClickGold: 'auto_click_gold',
  190. /// 升级总部大楼
  191. UpBuildingLevel: 'up_building_level',
  192. ///使用实时技能
  193. UseTimeSkill: 'use_time_skill',
  194. ///升级或解锁固定技能
  195. UpdateFixationSkill: 'update_fixtion_skill',
  196. /// 第三个技能使用完毕
  197. SkillThreeHasDone: 'skill_three_hasDone',
  198. /// 明星入驻房间
  199. StarEnterRoom: 'star_enter_room',
  200. /// 重置技能
  201. ResetSkill: 'reset_skill',
  202. ///获取房间的里程碑
  203. GetRoomAward: 'get_room_award',
  204. ///获取房间的里程碑或总部里程碑显示提示
  205. GameShowAdditionTips: 'game_show_addition_tips',
  206. ///显示群排行
  207. GameShowGroupRank: 'game_show_group_rank',
  208. /// 游戏红点更新
  209. GameRedDotUpdate: 'game_redDota_update',
  210. //// 游戏重新回到前台的通知
  211. GameShowNotificationKey: 'game_show_notification_key',
  212. ///更新信息流数据
  213. GameUpdateMessageList: 'game_update_messageList',
  214. });
  215. var LevelHomeFriendItemStyle = cc.Enum({
  216. AllFriend: 1,
  217. Friend: 2,
  218. Talent: 3, // 星探
  219. Artist: 4,
  220. });
  221. /** 场景节点地图 */
  222. const SenceMap = cc.Enum({
  223. /** 我的家园界面 */
  224. LevelHome: "sence_levelHome",
  225. /** 用户详细信息 */
  226. UserPanel: "sence_userPanel",
  227. /** 好友系统、好友推荐Tab等 */
  228. FriendSystem: "sence_friendSystem",
  229. /** 好友家园界面 */
  230. FriendHome: "sence_friendHome",
  231. /** 突破界面 */
  232. BreakOut: "sence_breakOut",
  233. /** 转职界面 */
  234. JobChange: "sence_jobChange",
  235. /** 星探界面 */
  236. Finder: "sence_finder"
  237. })
  238. var JobPageType = cc.Enum({
  239. ChangeJob: 0,
  240. ChooseJob: 1,
  241. LevelUp: 2
  242. })
  243. const ArtistTrainItemSkillStyle = cc.Enum({
  244. Ability: 1,
  245. Charm: 2,
  246. Effect: 3
  247. });
  248. const LevelHomeArtistItemStyle = cc.Enum({
  249. Add: 0,
  250. Artist: 1
  251. });
  252. const ArtistOperation = cc.Enum({
  253. // 召回艺人
  254. RecallArtist: 1,
  255. // 召回艺人失败
  256. RecalArtistlFail: 2,
  257. // 举报艺人成功
  258. ReportArtistSuccess: 3,
  259. // 举报艺人失败
  260. ReportArtistFail: 4,
  261. // 驱赶艺人
  262. DriveAwayArtist: 5,
  263. // 驱赶艺人
  264. DriveAwayArtistFail: 6
  265. });
  266. // type:1为商品购买通知,2为主线任务通知,3为每日任务通知,4:为技能可使用或可重置的通知,5为可进行抽奖的通知,6为可以免费分享购买砖石的通知,7为可以免费分享购买金币的通知
  267. const GameRedDot = cc.Enum ({
  268. /// 商品购买通知红点
  269. shop: 1,
  270. ///主线任务通知
  271. mainTask: 2,
  272. /// 每日任务通知
  273. dayTask: 3,
  274. ///技能可使用或可重置的通知
  275. skill: 4,
  276. /// 抽奖时间到了
  277. draw: 5,
  278. ///商城可以免费购买钻石的通知
  279. storeDiamond: 6,
  280. /// 商城可以免费获得金币的通知
  281. storeCoin: 7,
  282. /// 客户端字段
  283. star: 8,
  284. })
  285. // 将需要导出的枚举用这种方式exports给外界使用
  286. module.exports.RoomState = RoomState;
  287. module.exports.UserInformationType = UserInformationType;
  288. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  289. module.exports.UserJobType = UserJobType;
  290. module.exports.UserInteractionType = UserInteractionType;
  291. module.exports.UserIntimacyType = UserIntimacyType;
  292. module.exports.QuestMainMissionType = QuestMainMissionType;
  293. module.exports.QuestDailyMissionType = QuestDailyMissionType;
  294. module.exports.HomeGuideDialogType = HomeGuideDialogType;
  295. module.exports.HomeGuideArrowType = HomeGuideArrowType;
  296. module.exports.ResponseStateCode = ResponseStateCode;
  297. module.exports.ReportType = ReportType;
  298. module.exports.GameNotificationKey = GameNotificationKey;
  299. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  300. module.exports.SenceMap = SenceMap;
  301. module.exports.JobPageType = JobPageType;
  302. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  303. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  304. module.exports.ArtistOperation = ArtistOperation;
  305. module.exports.GameRedDot = GameRedDot;