GameEnum.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. });
  145. var LevelHomeFriendItemStyle = cc.Enum({
  146. AllFriend: 1,
  147. Friend: 2,
  148. Talent: 3, // 星探
  149. Artist: 4,
  150. });
  151. /** 场景节点地图 */
  152. const SenceMap = cc.Enum({
  153. /** 我的家园界面 */
  154. LevelHome: "sence_levelHome",
  155. /** 用户详细信息 */
  156. UserPanel: "sence_userPanel",
  157. /** 好友系统、好友推荐Tab等 */
  158. FriendSystem: "sence_friendSystem",
  159. /** 好友家园界面 */
  160. FriendHome: "sence_friendHome",
  161. /** 突破界面 */
  162. BreakOut: "sence_breakOut",
  163. /** 转职界面 */
  164. JobChange: "sence_jobChange",
  165. /** 星探界面 */
  166. Finder: "sence_finder"
  167. })
  168. var JobPageType = cc.Enum({
  169. ChangeJob: 0,
  170. ChooseJob: 1,
  171. LevelUp: 2
  172. })
  173. const ArtistTrainItemSkillStyle = cc.Enum({
  174. Ability: 1,
  175. Charm: 2,
  176. Effect: 3
  177. });
  178. const LevelHomeArtistItemStyle = cc.Enum({
  179. Add: 0,
  180. Artist: 1
  181. });
  182. const ArtistOperation = cc.Enum({
  183. // 召回艺人
  184. RecallArtist: 1,
  185. // 召回艺人失败
  186. RecalArtistlFail: 2,
  187. // 举报艺人成功
  188. ReportArtistSuccess: 3,
  189. // 举报艺人失败
  190. ReportArtistFail: 4,
  191. // 驱赶艺人
  192. DriveAwayArtist: 5,
  193. // 驱赶艺人
  194. DriveAwayArtistFail: 6
  195. });
  196. // 将需要导出的枚举用这种方式exports给外界使用
  197. module.exports.RoomState = RoomState;
  198. module.exports.UserInformationType = UserInformationType;
  199. module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
  200. module.exports.UserJobType = UserJobType;
  201. module.exports.UserInteractionType = UserInteractionType;
  202. module.exports.UserIntimacyType = UserIntimacyType;
  203. module.exports.ResponseStateCode = ResponseStateCode;
  204. module.exports.ReportType = ReportType;
  205. module.exports.GameNotificationKey = GameNotificationKey;
  206. module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
  207. module.exports.SenceMap = SenceMap;
  208. module.exports.JobPageType = JobPageType;
  209. module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
  210. module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
  211. module.exports.ArtistOperation = ArtistOperation;