123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- // 在需要使用的项目里, 直接这样require
- // var RoomState = require("asdasd").RoomState
- var RoomState = cc.Enum({
- Invaild: 0,
- Lock: 1,
- UnLock: 2,
- Update: 3,
- Full: 4
- });
- //用户信息页面不同显示内容
- var UserInformationType = cc.Enum({
- Mine: 0,
- Boss: 1,
- MyArtist: 2,
- ArtistFree: 3,
- OtherArtist: 4
- });
- //职业种类
- var UserJobType = cc.Enum({
- None: 0, //没有选择职业
- MC: 1, //主持人
- Dancer: 2, //舞者
- Singer: 3, //歌手
- Actor: 4, //演员
- Electronic: 5 //电竞人员
- });
- //互动类型
- var UserInteractionType = cc.Enum({
- Common: 0, //普通互动
- PlayUp: 1, //讨好
- Revolt: 2, //反抗
- Pacify: 3, //安抚
- Order: 4, //使唤
- });
- //亲密度心形显示类型
- var UserIntimacyType = cc.Enum({
- Empty: 0, //没有互动
- Full: 2, //全满
- Left: 6, //左边完成
- Right: 9, //右边完成
- });
- /**
- * 网络回调状态码 code
- */
- var ResponseStateCode = cc.Enum({
- LOGIN_INVALIDATE: -5,
- OK: 0,
- });
- //用户信息页相关操作,1:赎身,2:抢夺,3:签约, 4: 解雇
- var UserInformationRelateOptType = cc.Enum({
- None: 0,
- Redeem: 1,
- Loot: 2,
- Sign: 3,
- Fire: 4,
- });
- //主线任务状态[0 : 未完成, 1 : 完成可领取, 2 : 完成已经领取]
- var QuestMainMissionType = cc.Enum({
- NoFinished: 0,
- CanGain: 1,
- AlreadyGet: 2
- });
- //每日任务状态[0 : 完成可领取, 1 : 未完成, 2 : 完成已经领取]
- var QuestDailyMissionType = cc.Enum({
- CanGain: 0,
- NoFinished: 1,
- AlreadyGet: 2
- });
- //新手教程提示框文字[0 : 上方箭头在左, 1 : 上方箭头在右, 2 : 下方箭头在左]
- var HomeGuideDialogType = cc.Enum({
- TopLeft: 0,
- TopRight: 1,
- BottomLeft: 2
- });
- //新手教程箭头方向[0 : 上, 1 : 右, 2 : 下,3 : 左]
- var HomeGuideArrowType = cc.Enum({
- Top: 0,
- Right: 1,
- Bottom: 2,
- Left: 3
- });
- var ReportType = cc.Enum({
- ID: "roomId",
- // 上报事件类型, 0是普通上报, 1是升级建筑
- Event: "cmd",
- Seq: "seq",
- /** 总金额 */
- Gold: "gold",
- /** 星星数 */
- Stars: "s",
- /** 建筑 */
- Build: "userRooms",
- /** 建筑 */
- UnLockBuild: "ub",
- /** 建筑等级 */
- Level: "roomLevel",
- /** 事件戳 */
- Timestamp: "t",
- /** 未收金币的次数 */
- NotPickupCoinCount: "cc",
- /** 手动点击获取金币次数 */
- ClickCount: "clickCount"
- });
- const GameNotificationKey = cc.Enum({
- /** 显示好友系统 */
- ShowFriendSystem: "show_friend_system",
- /** 访问好友家园 */
- VisitFriendHome: "visit_friend_home",
- /** 返回自己家园 */
- BackOwnerHome: "back_owner_home",
- /** 处理通过点击分享链接进入游戏的各种操作 */
- ProcessShareAction: "process_share_action",
- /** 显示用户信息 */
- ShowUserInfomation: "show_user_information",
- /** 升级建筑 */
- RoomUpdate: "room_update",
- /** 重新刷新首页数据 */
- HomeReloadData: "home_reload_data",
- /** 更新首页数据 */
- HomeUpdateData: "home_update_data",
- /** 数据上报 */
- UserReportGross: "user_report_gross",
- /** 刷新好友列表 */
- RefreshFriendList: "refresh_friend_list",
- /** 打开亲密度相关页面 */
- ShowInteraction: "show_user_interaction",
- ShowJobPage: 'show_job_page',
- BeginArtistTrain: 'BeginArtistTrain',
- /** 用户收取金币 */
- UserCollectCoin: "user_collect_coin",
- /** 打开亲密度相关页面 */
- RefreshUserInformation: 'RefreshUserInformation',
- /** 培养完成 */
- ArtistTrainCompletion: 'ArtistTrainCompletion',
- /** 播放成功的动画 */
- PlaySuccessAnimation: "PlaySuccessAnimation",
- ShowJobPageFromTalent: "show_job_page_from_talent",
- /** 显示物品描述 */
- ShowPropDesc: "show_prop_desc",
- /** 关闭物品描述 */
- HidePropDesc: "hide_prop_desc",
- /** 刷新背包列表未选中状态*/
- RefreshPackItem: "refresh_item_normal",
- /** 打开背包*/
- OpenPack: "open_pack",
- /** 装备卡片*/
- InsertCardToUser: "insert_card_to_user",
- /** 刷新背包物品数量*/
- RefreshPackInfo: "refresh_pack_info",
- /** 刷新入驻艺人列表样式 */
- ChangeArtistResidentState: "ChangeArtistResidentState",
- /** 刷新插卡界面显示*/
- RefreshInsertCardsInfo: "refresh_insert_cards_info",
- /** 全局history后退 */
- HistoryBack: "history_back",
- ShowCityMap: "show_citymap",
- /** 触发入驻成功通知 */
- NoticeRoleOpt: "NoticeRoleOpt",
- /** 入驻艺人 */
- ResidentArtist: "ResidentArtist",
- /** 更新我的入驻艺人列表 */
- RefreshLevelHomeArtistList: "RefreshLevelHomeArtistList",
- RefreshArtistManagerList: "RefreshArtistManagerList",
- CurrentCompanyMax: 'current_company_max',
- // 单个建筑满级时的通知
- LevelHomeItemBuildingFull: "LevelHomeItemBuildingFull",
- // 当所有建筑都满级时的通知
- LevelHomeItemBuildingAllFull: "LevelHomeItemBuildingAllFull",
- // 刷新入驻艺人列表
- RefreshResidentArtistList: "RefreshResidentArtistList",
- showCatFlyAnimation: 'show_cat_fly_animation',
- afterCatFly: 'after_cat_fly',
-
- PlayUpdateCoinAnimation: 'PlayCoinAnimation',
- ReloadLevelHomeData: "ReloadLevelHomeData",
- ResetLevelHomePaddingBottom: 'ResetLevelHomePaddingBottom',
- // 星探任务领取奖励通知
- TalentGainAward: 'TalentGainAward',
- // 离线收益动画
- HandleOfflineIncomeAnim: 'HandleOfflineIncomeAnim',
- //点击招财猫
- ClickAddMoney: 'click_add_money',
- //解锁、升级建筑刷新数据
- RefreshBuildingData: 'refresh_building_data',
- //tabbar点击招财猫
- TabbarClickCat: 'tabbar_click_cat',
- //楼层一级的时候解锁
- UnlockLevelHome: 'unlock_level_home',
- //自动点击加金币
- AutoClickGold: 'auto_click_gold',
- /// 升级总部大楼
- UpBuildingLevel: 'up_building_level',
- ///使用实时技能
- UseTimeSkill: 'use_time_skill',
-
- ///升级或解锁固定技能
- UpdateFixationSkill: 'update_fixtion_skill',
- /// 第三个技能使用完毕
- SkillThreeHasDone: 'skill_three_hasDone',
- /// 明星入驻房间
- StarEnterRoom: 'star_enter_room',
- /// 重置技能
- ResetSkill: 'reset_skill',
- ///获取房间的里程碑
- GetRoomAward: 'get_room_award',
- ///获取房间的里程碑或总部里程碑显示提示
- GameShowAdditionTips: 'game_show_addition_tips',
- ///显示群排行
- GameShowGroupRank: 'game_show_group_rank',
- /// 游戏红点更新
- GameRedDotUpdate: 'game_redDota_update',
- //// 游戏重新回到前台的通知
- GameShowNotificationKey: 'game_show_notification_key',
- ///更新信息流数据
- GameUpdateMessageList: 'game_update_messageList',
- });
- var LevelHomeFriendItemStyle = cc.Enum({
- AllFriend: 1,
- Friend: 2,
- Talent: 3, // 星探
- Artist: 4,
- });
- /** 场景节点地图 */
- const SenceMap = cc.Enum({
- /** 我的家园界面 */
- LevelHome: "sence_levelHome",
- /** 用户详细信息 */
- UserPanel: "sence_userPanel",
- /** 好友系统、好友推荐Tab等 */
- FriendSystem: "sence_friendSystem",
- /** 好友家园界面 */
- FriendHome: "sence_friendHome",
- /** 突破界面 */
- BreakOut: "sence_breakOut",
- /** 转职界面 */
- JobChange: "sence_jobChange",
- /** 星探界面 */
- Finder: "sence_finder"
- })
- var JobPageType = cc.Enum({
- ChangeJob: 0,
- ChooseJob: 1,
- LevelUp: 2
- })
- const ArtistTrainItemSkillStyle = cc.Enum({
- Ability: 1,
- Charm: 2,
- Effect: 3
- });
- const LevelHomeArtistItemStyle = cc.Enum({
- Add: 0,
- Artist: 1
- });
- const ArtistOperation = cc.Enum({
- // 召回艺人
- RecallArtist: 1,
- // 召回艺人失败
- RecalArtistlFail: 2,
- // 举报艺人成功
- ReportArtistSuccess: 3,
- // 举报艺人失败
- ReportArtistFail: 4,
- // 驱赶艺人
- DriveAwayArtist: 5,
- // 驱赶艺人
- DriveAwayArtistFail: 6
- });
- // type:1为商品购买通知,2为主线任务通知,3为每日任务通知,4:为技能可使用或可重置的通知,5为可进行抽奖的通知,6为可以免费分享购买砖石的通知,7为可以免费分享购买金币的通知
- const GameRedDot = cc.Enum ({
- /// 商品购买通知红点
- shop: 1,
- ///主线任务通知
- mainTask: 2,
- /// 每日任务通知
- dayTask: 3,
- ///技能可使用或可重置的通知
- skill: 4,
- /// 抽奖时间到了
- draw: 5,
- ///商城可以免费购买钻石的通知
- storeDiamond: 6,
- /// 商城可以免费获得金币的通知
- storeCoin: 7,
- /// 客户端字段
- star: 8,
- })
- // 将需要导出的枚举用这种方式exports给外界使用
- module.exports.RoomState = RoomState;
- module.exports.UserInformationType = UserInformationType;
- module.exports.UserInformationRelateOptType = UserInformationRelateOptType;
- module.exports.UserJobType = UserJobType;
- module.exports.UserInteractionType = UserInteractionType;
- module.exports.UserIntimacyType = UserIntimacyType;
- module.exports.QuestMainMissionType = QuestMainMissionType;
- module.exports.QuestDailyMissionType = QuestDailyMissionType;
- module.exports.HomeGuideDialogType = HomeGuideDialogType;
- module.exports.HomeGuideArrowType = HomeGuideArrowType;
- module.exports.ResponseStateCode = ResponseStateCode;
- module.exports.ReportType = ReportType;
- module.exports.GameNotificationKey = GameNotificationKey;
- module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
- module.exports.SenceMap = SenceMap;
- module.exports.JobPageType = JobPageType;
- module.exports.ArtistTrainItemSkillStyle = ArtistTrainItemSkillStyle;
- module.exports.LevelHomeArtistItemStyle = LevelHomeArtistItemStyle;
- module.exports.ArtistOperation = ArtistOperation;
- module.exports.GameRedDot = GameRedDot;
|