GameEnum.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. BeginArtistTrain: 'BeginArtistTrain',
  102. /** 用户收取金币 */
  103. UserCollectCoin: "user_collect_coin",
  104. /** 打开亲密度相关页面 */
  105. RefreshUserInformation: 'RefreshUserInformation',
  106. /** 培养完成 */
  107. ArtistTrainCompletion: 'ArtistTrainCompletion',
  108. /** 播放成功的动画 */
  109. PlaySuccessAnimation: "PlaySuccessAnimation",
  110. ShowJobPageFromTalent: "show_job_page_from_talent",
  111. /** 显示物品描述 */
  112. ShowPropDesc: "show_prop_desc",
  113. /** 关闭物品描述 */
  114. HidePropDesc: "hide_prop_desc",
  115. /** 刷新背包列表未选中状态*/
  116. RefreshPackItem: "refresh_item_normal",
  117. /** 打开背包*/
  118. OpenPack: "open_pack",
  119. /** 装备卡片*/
  120. InsertCardToUser: "insert_card_to_user",
  121. /** 刷新背包物品数量*/
  122. RefreshPackInfo: "refresh_pack_info",
  123. /** 刷新入驻艺人列表样式 */
  124. ChangeArtistResidentState: "ChangeArtistResidentState",
  125. /** 刷新插卡界面显示*/
  126. RefreshInsertCardsInfo: "refresh_insert_cards_info",
  127. /** 全局history后退 */
  128. HistoryBack: "history_back",
  129. ShowCityMap: "show_citymap",
  130. /** 触发入驻成功通知 */
  131. NoticeRoleOpt: "NoticeRoleOpt",
  132. /** 入驻艺人 */
  133. ResidentArtist: "ResidentArtist",
  134. /** 更新我的入驻艺人列表 */
  135. RefreshLevelHomeArtistList: "RefreshLevelHomeArtistList",
  136. RefreshArtistManagerList: "RefreshArtistManagerList",
  137. CurrentCompanyMax: 'current_company_max',
  138. // 单个建筑满级时的通知
  139. LevelHomeItemBuildingFull: "LevelHomeItemBuildingFull",
  140. // 当所有建筑都满级时的通知
  141. LevelHomeItemBuildingAllFull: "LevelHomeItemBuildingAllFull",
  142. // 刷新入驻艺人列表
  143. RefreshResidentArtistList: "RefreshResidentArtistList",
  144. showCatFlyAnimation: 'show_cat_fly_animation',
  145. afterCatFly: 'after_cat_fly',
  146. PlayUpdateCoinAnimation: 'PlayCoinAnimation',
  147. ReloadLevelHomeData: "ReloadLevelHomeData",
  148. ResetLevelHomePaddingBottom: 'ResetLevelHomePaddingBottom'
  149. });
  150. var LevelHomeFriendItemStyle = cc.Enum({
  151. AllFriend: 1,
  152. Friend: 2,
  153. Talent: 3, // 星探
  154. Artist: 4,
  155. });
  156. /** 场景节点地图 */
  157. const SenceMap = cc.Enum({
  158. /** 我的家园界面 */
  159. LevelHome: "sence_levelHome",
  160. /** 用户详细信息 */
  161. UserPanel: "sence_userPanel",
  162. /** 好友系统、好友推荐Tab等 */
  163. FriendSystem: "sence_friendSystem",
  164. /** 好友家园界面 */
  165. FriendHome: "sence_friendHome",
  166. /** 突破界面 */
  167. BreakOut: "sence_breakOut",
  168. /** 转职界面 */
  169. JobChange: "sence_jobChange",
  170. /** 星探界面 */
  171. Finder: "sence_finder"
  172. })
  173. var JobPageType = cc.Enum({
  174. ChangeJob: 0,
  175. ChooseJob: 1,
  176. LevelUp: 2
  177. })
  178. const ArtistTrainItemSkillStyle = cc.Enum({
  179. Ability: 1,
  180. Charm: 2,
  181. Effect: 3
  182. });
  183. const LevelHomeArtistItemStyle = cc.Enum({
  184. Add: 0,
  185. Artist: 1
  186. });
  187. const ArtistOperation = cc.Enum({
  188. // 召回艺人
  189. RecallArtist: 1,
  190. // 召回艺人失败
  191. RecalArtistlFail: 2,
  192. // 举报艺人成功
  193. ReportArtistSuccess: 3,
  194. // 举报艺人失败
  195. ReportArtistFail: 4,
  196. // 驱赶艺人
  197. DriveAwayArtist: 5,
  198. // 驱赶艺人
  199. DriveAwayArtistFail: 6
  200. });
  201. // 将需要导出的枚举用这种方式exports给外界使用
  202. module.exports.RoomState = RoomState;
  203. module.exports.UserInformationType = UserInformationType;
  204. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  205. module.exports.UserJobType = UserJobType;
  206. module.exports.UserInteractionType = UserInteractionType;
  207. module.exports.UserIntimacyType = UserIntimacyType;
  208. module.exports.ResponseStateCode = ResponseStateCode;
  209. module.exports.ReportType = ReportType;
  210. module.exports.GameNotificationKey = GameNotificationKey;
  211. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  212. module.exports.SenceMap = SenceMap;
  213. module.exports.JobPageType = JobPageType;
  214. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  215. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  216. module.exports.ArtistOperation = ArtistOperation;