GameEnum.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. //任务状态[0 : 完成可领取, 1 : 未完成, 2 : 完成已领取]
  50. var QuestItemType = cc.Enum({
  51. Gain: 0,
  52. NoFinished: 1,
  53. Finished: 2,
  54. });
  55. //用户信息页相关操作,1:赎身,2:抢夺,3:签约, 4: 解雇
  56. var UserInformationRelateOptType = cc.Enum({
  57. None: 0,
  58. Redeem: 1,
  59. Loot: 2,
  60. Sign: 3,
  61. Fire: 4,
  62. });
  63. var ReportType = cc.Enum({
  64. ID: "roomId",
  65. // 上报事件类型, 0是普通上报, 1是升级建筑
  66. Event: "cmd",
  67. Seq: "seq",
  68. /** 总金额 */
  69. Gold: "gold",
  70. /** 星星数 */
  71. Stars: "s",
  72. /** 建筑 */
  73. Build: "userRooms",
  74. /** 建筑 */
  75. UnLockBuild: "ub",
  76. /** 建筑等级 */
  77. Level: "roomLevel",
  78. /** 事件戳 */
  79. Timestamp: "t",
  80. /** 未收金币的次数 */
  81. NotPickupCoinCount: "cc",
  82. /** 手动点击获取金币次数 */
  83. ClickCount: "clickCount"
  84. });
  85. const GameNotificationKey = cc.Enum({
  86. /** 显示好友系统 */
  87. ShowFriendSystem: "show_friend_system",
  88. /** 访问好友家园 */
  89. VisitFriendHome: "visit_friend_home",
  90. /** 返回自己家园 */
  91. BackOwnerHome: "back_owner_home",
  92. /** 处理通过点击分享链接进入游戏的各种操作 */
  93. ProcessShareAction: "process_share_action",
  94. /** 显示用户信息 */
  95. ShowUserInfomation: "show_user_information",
  96. /** 升级建筑 */
  97. RoomUpdate: "room_update",
  98. /** 重新刷新首页数据 */
  99. HomeReloadData: "home_reload_data",
  100. /** 更新首页数据 */
  101. HomeUpdateData: "home_update_data",
  102. /** 数据上报 */
  103. UserReportGross: "user_report_gross",
  104. /** 刷新好友列表 */
  105. RefreshFriendList: "refresh_friend_list",
  106. /** 打开亲密度相关页面 */
  107. ShowInteraction: "show_user_interaction",
  108. ShowJobPage: 'show_job_page',
  109. BeginArtistTrain: 'BeginArtistTrain',
  110. /** 用户收取金币 */
  111. UserCollectCoin: "user_collect_coin",
  112. /** 打开亲密度相关页面 */
  113. RefreshUserInformation: 'RefreshUserInformation',
  114. /** 培养完成 */
  115. ArtistTrainCompletion: 'ArtistTrainCompletion',
  116. /** 播放成功的动画 */
  117. PlaySuccessAnimation: "PlaySuccessAnimation",
  118. ShowJobPageFromTalent: "show_job_page_from_talent",
  119. /** 显示物品描述 */
  120. ShowPropDesc: "show_prop_desc",
  121. /** 关闭物品描述 */
  122. HidePropDesc: "hide_prop_desc",
  123. /** 刷新背包列表未选中状态*/
  124. RefreshPackItem: "refresh_item_normal",
  125. /** 打开背包*/
  126. OpenPack: "open_pack",
  127. /** 装备卡片*/
  128. InsertCardToUser: "insert_card_to_user",
  129. /** 刷新背包物品数量*/
  130. RefreshPackInfo: "refresh_pack_info",
  131. /** 刷新入驻艺人列表样式 */
  132. ChangeArtistResidentState: "ChangeArtistResidentState",
  133. /** 刷新插卡界面显示*/
  134. RefreshInsertCardsInfo: "refresh_insert_cards_info",
  135. /** 全局history后退 */
  136. HistoryBack: "history_back",
  137. ShowCityMap: "show_citymap",
  138. /** 触发入驻成功通知 */
  139. NoticeRoleOpt: "NoticeRoleOpt",
  140. /** 入驻艺人 */
  141. ResidentArtist: "ResidentArtist",
  142. /** 更新我的入驻艺人列表 */
  143. RefreshLevelHomeArtistList: "RefreshLevelHomeArtistList",
  144. RefreshArtistManagerList: "RefreshArtistManagerList",
  145. CurrentCompanyMax: 'current_company_max',
  146. // 单个建筑满级时的通知
  147. LevelHomeItemBuildingFull: "LevelHomeItemBuildingFull",
  148. // 当所有建筑都满级时的通知
  149. LevelHomeItemBuildingAllFull: "LevelHomeItemBuildingAllFull",
  150. // 刷新入驻艺人列表
  151. RefreshResidentArtistList: "RefreshResidentArtistList",
  152. showCatFlyAnimation: 'show_cat_fly_animation',
  153. afterCatFly: 'after_cat_fly',
  154. PlayUpdateCoinAnimation: 'PlayCoinAnimation',
  155. ReloadLevelHomeData: "ReloadLevelHomeData",
  156. ResetLevelHomePaddingBottom: 'ResetLevelHomePaddingBottom',
  157. // 星探任务领取奖励通知
  158. TalentGainAward: 'TalentGainAward',
  159. // 离线收益动画
  160. HandleOfflineIncomeAnim: 'HandleOfflineIncomeAnim',
  161. //点击招财猫
  162. ClickAddMoney: 'click_add_money',
  163. //解锁、升级建筑刷新数据
  164. RefreshBuildingData: 'refresh_building_data',
  165. //显示获取奖励动画
  166. ShowActGift: 'show_act_gift',
  167. TabbarClickCat: 'tabbar_click_cat',
  168. //楼层一级的时候解锁
  169. UnlockLevelHome: 'unlock_level_home',
  170. //自动点击加金币
  171. AutoClickGold: 'auto_click_gold',
  172. /// 升级总部大楼
  173. UpBuildingLevel: 'up_building_level',
  174. ///使用实时技能
  175. UseTimeSkill: 'use_time_skill',
  176. ///升级或解锁固定技能
  177. UpdateFixationSkill: 'update_fixtion_skill',
  178. /// 第三个技能使用完毕
  179. SkillThreeHasDone: 'skill_three_hasDone',
  180. /// 明星入驻房间
  181. StarEnterRoom: 'star_enter_room',
  182. /// 重置技能
  183. ResetSkill: 'reset_skill',
  184. });
  185. var LevelHomeFriendItemStyle = cc.Enum({
  186. AllFriend: 1,
  187. Friend: 2,
  188. Talent: 3, // 星探
  189. Artist: 4,
  190. });
  191. /** 场景节点地图 */
  192. const SenceMap = cc.Enum({
  193. /** 我的家园界面 */
  194. LevelHome: "sence_levelHome",
  195. /** 用户详细信息 */
  196. UserPanel: "sence_userPanel",
  197. /** 好友系统、好友推荐Tab等 */
  198. FriendSystem: "sence_friendSystem",
  199. /** 好友家园界面 */
  200. FriendHome: "sence_friendHome",
  201. /** 突破界面 */
  202. BreakOut: "sence_breakOut",
  203. /** 转职界面 */
  204. JobChange: "sence_jobChange",
  205. /** 星探界面 */
  206. Finder: "sence_finder"
  207. })
  208. var JobPageType = cc.Enum({
  209. ChangeJob: 0,
  210. ChooseJob: 1,
  211. LevelUp: 2
  212. })
  213. const ArtistTrainItemSkillStyle = cc.Enum({
  214. Ability: 1,
  215. Charm: 2,
  216. Effect: 3
  217. });
  218. const LevelHomeArtistItemStyle = cc.Enum({
  219. Add: 0,
  220. Artist: 1
  221. });
  222. const ArtistOperation = cc.Enum({
  223. // 召回艺人
  224. RecallArtist: 1,
  225. // 召回艺人失败
  226. RecalArtistlFail: 2,
  227. // 举报艺人成功
  228. ReportArtistSuccess: 3,
  229. // 举报艺人失败
  230. ReportArtistFail: 4,
  231. // 驱赶艺人
  232. DriveAwayArtist: 5,
  233. // 驱赶艺人
  234. DriveAwayArtistFail: 6
  235. });
  236. // 将需要导出的枚举用这种方式exports给外界使用
  237. module.exports.RoomState = RoomState;
  238. module.exports.UserInformationType = UserInformationType;
  239. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  240. module.exports.UserJobType = UserJobType;
  241. module.exports.UserInteractionType = UserInteractionType;
  242. module.exports.UserIntimacyType = UserIntimacyType;
  243. module.exports.QuestItemType = QuestItemType;
  244. module.exports.ResponseStateCode = ResponseStateCode;
  245. module.exports.ReportType = ReportType;
  246. module.exports.GameNotificationKey = GameNotificationKey;
  247. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  248. module.exports.SenceMap = SenceMap;
  249. module.exports.JobPageType = JobPageType;
  250. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  251. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  252. module.exports.ArtistOperation = ArtistOperation;