GameEnum.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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. var LevelHomeFriendItemStyle = cc.Enum({
  210. AllFriend: 1,
  211. Friend: 2,
  212. Talent: 3, // 星探
  213. Artist: 4,
  214. });
  215. /** 场景节点地图 */
  216. const SenceMap = cc.Enum({
  217. /** 我的家园界面 */
  218. LevelHome: "sence_levelHome",
  219. /** 用户详细信息 */
  220. UserPanel: "sence_userPanel",
  221. /** 好友系统、好友推荐Tab等 */
  222. FriendSystem: "sence_friendSystem",
  223. /** 好友家园界面 */
  224. FriendHome: "sence_friendHome",
  225. /** 突破界面 */
  226. BreakOut: "sence_breakOut",
  227. /** 转职界面 */
  228. JobChange: "sence_jobChange",
  229. /** 星探界面 */
  230. Finder: "sence_finder"
  231. })
  232. var JobPageType = cc.Enum({
  233. ChangeJob: 0,
  234. ChooseJob: 1,
  235. LevelUp: 2
  236. })
  237. const ArtistTrainItemSkillStyle = cc.Enum({
  238. Ability: 1,
  239. Charm: 2,
  240. Effect: 3
  241. });
  242. const LevelHomeArtistItemStyle = cc.Enum({
  243. Add: 0,
  244. Artist: 1
  245. });
  246. const ArtistOperation = cc.Enum({
  247. // 召回艺人
  248. RecallArtist: 1,
  249. // 召回艺人失败
  250. RecalArtistlFail: 2,
  251. // 举报艺人成功
  252. ReportArtistSuccess: 3,
  253. // 举报艺人失败
  254. ReportArtistFail: 4,
  255. // 驱赶艺人
  256. DriveAwayArtist: 5,
  257. // 驱赶艺人
  258. DriveAwayArtistFail: 6
  259. });
  260. // 将需要导出的枚举用这种方式exports给外界使用
  261. module.exports.RoomState = RoomState;
  262. module.exports.UserInformationType = UserInformationType;
  263. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  264. module.exports.UserJobType = UserJobType;
  265. module.exports.UserInteractionType = UserInteractionType;
  266. module.exports.UserIntimacyType = UserIntimacyType;
  267. module.exports.QuestMainMissionType = QuestMainMissionType;
  268. module.exports.QuestDailyMissionType = QuestDailyMissionType;
  269. module.exports.HomeGuideDialogType = HomeGuideDialogType;
  270. module.exports.HomeGuideArrowType = HomeGuideArrowType;
  271. module.exports.ResponseStateCode = ResponseStateCode;
  272. module.exports.ReportType = ReportType;
  273. module.exports.GameNotificationKey = GameNotificationKey;
  274. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  275. module.exports.SenceMap = SenceMap;
  276. module.exports.JobPageType = JobPageType;
  277. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  278. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  279. module.exports.ArtistOperation = ArtistOperation;