GameEnum.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. var ReportType = cc.Enum({
  58. ID: "id",
  59. // 上报事件类型, 0是普通上报, 1是升级建筑
  60. Event: "cmd",
  61. Seq: "seq",
  62. /** 总金额 */
  63. GrossIncome: "gi",
  64. /** 星星数 */
  65. Stars: "s",
  66. /** 建筑 */
  67. Build: "b",
  68. /** 建筑 */
  69. UnLockBuild: "ub",
  70. /** 建筑等级 */
  71. Level: "l",
  72. /** 事件戳 */
  73. Timestamp: "t",
  74. /** 未收金币的次数 */
  75. NotPickupCoinCount: "cc"
  76. });
  77. const GameNotificationKey = cc.Enum({
  78. /** 显示好友系统 */
  79. ShowFriendSystem: "show_friend_system",
  80. /** 访问好友家园 */
  81. VisitFriendHome: "visit_friend_home",
  82. /** 返回自己家园 */
  83. BackOwnerHome: "back_owner_home",
  84. /** 处理通过点击分享链接进入游戏的各种操作 */
  85. ProcessShareAction: "process_share_action",
  86. /** 显示用户信息 */
  87. ShowUserInfomation: "show_user_information",
  88. /** 升级建筑 */
  89. RoomUpdate: "room_update",
  90. /** 重新刷新首页数据 */
  91. HomeReloadData: "home_reload_data",
  92. /** 更新首页数据 */
  93. HomeUpdateData: "home_update_data",
  94. /** 数据上报 */
  95. UserReportGross: "user_report_gross",
  96. /** 刷新好友列表 */
  97. RefreshFriendList: "refresh_friend_list",
  98. /** 打开亲密度相关页面 */
  99. ShowInteraction: "show_user_interaction",
  100. ShowJobPage: 'show_job_page',
  101. /** 用户收取金币 */
  102. UserCollectCoin: "user_collect_coin",
  103. /** 打开亲密度相关页面 */
  104. RefreshUserInformation: 'RefreshUserInformation',
  105. /** 播放成功的动画 */
  106. PlaySuccessAnimation: "PlaySuccessAnimation",
  107. ShowJobPageFromTalent: "show_job_page_from_talent",
  108. /** 显示物品描述 */
  109. ShowPropDesc: "show_prop_desc",
  110. /** 关闭物品描述 */
  111. HidePropDesc: "hide_prop_desc",
  112. /** 刷新背包列表未选中状态*/
  113. RefreshPackItem: "refresh_item_normal",
  114. /** 打开背包*/
  115. OpenPack: "open_pack",
  116. /** 装备卡片*/
  117. InsertCardToUser: "insert_card_to_user",
  118. /** 刷新背包物品数量*/
  119. RefreshPackInfo: "refresh_pack_info",
  120. /** 刷新入驻艺人列表样式 */
  121. ChangeArtistResidentState: "ChangeArtistResidentState",
  122. /** 刷新插卡界面显示*/
  123. RefreshInsertCardsInfo: "refresh_insert_cards_info",
  124. /** 全局history后退 */
  125. HistoryBack: "history_back",
  126. ShowCityMap: "show_citymap",
  127. /** 触发入驻成功通知 */
  128. NoticeRoleOpt: "NoticeRoleOpt",
  129. /** 入驻艺人 */
  130. ResidentArtist: "ResidentArtist",
  131. /** 更新我的入驻艺人列表 */
  132. RefreshLevelHomeArtistList: "RefreshLevelHomeArtistList",
  133. RefreshArtistManagerList: "RefreshArtistManagerList",
  134. CurrentCompanyMax: 'current_company_max',
  135. // 单个建筑满级时的通知
  136. LevelHomeItemBuildingFull: "LevelHomeItemBuildingFull",
  137. // 当所有建筑都满级时的通知
  138. LevelHomeItemBuildingAllFull: "LevelHomeItemBuildingAllFull",
  139. // 刷新入驻艺人列表
  140. RefreshResidentArtistList: "RefreshResidentArtistList",
  141. showCatFlyAnimation: 'show_cat_fly_animation',
  142. afterCatFly: 'after_cat_fly',
  143. PlayUpdateCoinAnimation: 'PlayCoinAnimation',
  144. ReloadLevelHomeData: "ReloadLevelHomeData",
  145. ResetLevelHomePaddingBottom: 'ResetLevelHomePaddingBottom',
  146. // 星探任务领取奖励通知
  147. TalentGainAward: 'TalentGainAward',
  148. // 离线收益动画
  149. HandleOfflineIncomeAnim: 'HandleOfflineIncomeAnim',
  150. // 建筑升级到特定等级,触发金币翻倍或者生产时间缩短的通知(仅通知,金币生产速度已经在配置表有体现)
  151. LevelHomeSpeedUp: 'LevelHomeSpeedUp',
  152. // 接受到levelhomeitem里的道具更新
  153. ReceiveLevelHomeItemPropUpdate: 'ReceiveLevelHomeItemPropUpdate',
  154. LevelHomeItemUnlock: 'LevelHomeItemUnlock',
  155. });
  156. var LevelHomeFriendItemStyle = cc.Enum({
  157. AllFriend: 1,
  158. Friend: 2,
  159. Talent: 3, // 星探
  160. Artist: 4,
  161. });
  162. /** 场景节点地图 */
  163. const SenceMap = cc.Enum({
  164. /** 我的家园界面 */
  165. LevelHome: "sence_levelHome",
  166. /** 用户详细信息 */
  167. UserPanel: "sence_userPanel",
  168. /** 好友系统、好友推荐Tab等 */
  169. FriendSystem: "sence_friendSystem",
  170. /** 好友家园界面 */
  171. FriendHome: "sence_friendHome",
  172. /** 突破界面 */
  173. BreakOut: "sence_breakOut",
  174. /** 转职界面 */
  175. JobChange: "sence_jobChange",
  176. /** 星探界面 */
  177. Finder: "sence_finder"
  178. })
  179. var JobPageType = cc.Enum({
  180. ChangeJob: 0,
  181. ChooseJob: 1,
  182. LevelUp: 2
  183. })
  184. const ArtistTrainItemSkillStyle = cc.Enum({
  185. Ability: 1,
  186. Charm: 2,
  187. Effect: 3
  188. });
  189. const LevelHomeArtistItemStyle = cc.Enum({
  190. Add: 0,
  191. Artist: 1
  192. });
  193. const ArtistOperation = cc.Enum({
  194. // 召回艺人
  195. RecallArtist: 1,
  196. // 召回艺人失败
  197. RecalArtistlFail: 2,
  198. // 举报艺人成功
  199. ReportArtistSuccess: 3,
  200. // 举报艺人失败
  201. ReportArtistFail: 4,
  202. // 驱赶艺人
  203. DriveAwayArtist: 5,
  204. // 驱赶艺人
  205. DriveAwayArtistFail: 6
  206. });
  207. // 将需要导出的枚举用这种方式exports给外界使用
  208. module.exports.RoomState = RoomState;
  209. module.exports.UserInformationType = UserInformationType;
  210. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  211. module.exports.UserJobType = UserJobType;
  212. module.exports.UserInteractionType = UserInteractionType;
  213. module.exports.UserIntimacyType = UserIntimacyType;
  214. module.exports.ResponseStateCode = ResponseStateCode;
  215. module.exports.ReportType = ReportType;
  216. module.exports.GameNotificationKey = GameNotificationKey;
  217. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  218. module.exports.SenceMap = SenceMap;
  219. module.exports.JobPageType = JobPageType;
  220. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  221. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  222. module.exports.ArtistOperation = ArtistOperation;