123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- // 在需要使用的项目里, 直接这样require
- // var RoomState = require("asdasd").RoomState
- var RoomState = cc.Enum({
- Invaild: 0,
- Lock: 1,
- UnLock: 2,
- Update: 3,
- Full: 4,
- WatchVideo: 5
- });
- /**
- * 网络回调状态码 code
- */
- var ResponseStateCode = cc.Enum({
- LOGIN_INVALIDATE: -5,
- OK: 0,
- });
- //主线任务状态[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 InviteMissionItemType = cc.Enum({
- Gain: 0,
- NoFinished: 1,
- Finished: 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 WechatShareType = cc.Enum({
- None: 0,
- ResetSkill: 1, //重置技能
- DrawLottery: 2, //分享抽奖
- StoreGetGift: 3, //商店分享获得奖励
- OfflineIncome: 4, //离线收益
- InviteFriend: 5, //邀请好友
- LoginReward: 6, //七天登录分享奖励
- UpBuilding: 7, /// 升级房间等级奖励
- BuyStar: 8, /// 购买明星
- UpRoomLevel: 9, ///升级楼层等级
- FriendHelp: 10, //好友助力
- drawShare: 11, //抽奖分享炫耀
- buyStar: 12, /// 购买明星炫耀
- });
- //视频广告的状态
- var ADVideoLoadState = cc.Enum({
- success: 0, /// 视频load成功
- fail: 1, /// 视频加载失败
- closeFail: 2, /// 没有正常完成关闭
- closeFinish: 3, /// 正常完成关闭
- });
- //明星类型
- var StarType = cc.Enum({
- None: 0,
- Common: 1, //普通
- Draw: 2, //抽奖
- Gift: 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',
- // 星探任务领取奖励通知
- InviteGainAward: 'InviteGainAward',
- // 离线收益动画
- 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',
- /// 升级实时技能
- UpdateTimeSkill: 'update_time_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',
- //// 游戏重新回到前台判断使用技能状态
- GameSkillOnHide: 'game_skill_on_hide',
- /// 单个明星离开房间
- StarLeaveRoom: 'star_leave_room',
- /// 全部明星离开房间
- AllStarLeaveRoom: 'all_star_leave_room',
- /// 分享操作
- ShowShareAction: 'show_share_action',
- ///更新信息流数据
- GameUpdateMessageList: 'game_update_messageList',
- GameUpdateStarContentBuyGold: 'game_update_star_content_buyGold',
- //
- LoginRewardGainOneDay: 'LoginRewardGainOneDay',
- //
- LoginRewardGainFinish: 'LoginRewardGainFinish',
- /// 广告刷新状态
- AdUpdateStateNotification: 'AdUpdateStateNotification',
- /// 总部大楼的广告状态需要更新
- AdBuildingStateUpdate: 'ad_bulding_state_update',
- /// 明星的广告状态需要更新
- AdStarStateUpdate: 'ad_star_state_update',
- /// 房间的广告状态需要更新
- AdRoomStateUpdate: 'ad_room_state_update',
- ///刷新签约明星列表数据
- RefreshSignArtistList: 'refresh_sign_artist_list',
- ///
- GainFriendHelpClick: 'gain_friend_help_click'
- });
- 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"
- })
- // 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,
- /// 邀请好友
- inviteFriend: 9,
- ///七天登陆
- sign: 10,
- /// 好友助力
- friendAward: 11,
- ///每天奖励
- award: 12,
- });
- // 将需要导出的枚举用这种方式exports给外界使用
- module.exports.RoomState = RoomState;
- module.exports.QuestMainMissionType = QuestMainMissionType;
- module.exports.QuestDailyMissionType = QuestDailyMissionType;
- module.exports.InviteMissionItemType = InviteMissionItemType;
- module.exports.HomeGuideDialogType = HomeGuideDialogType;
- module.exports.HomeGuideArrowType = HomeGuideArrowType;
- module.exports.WechatShareType = WechatShareType;
- module.exports.StarType = StarType;
- module.exports.ResponseStateCode = ResponseStateCode;
- module.exports.ReportType = ReportType;
- module.exports.GameNotificationKey = GameNotificationKey;
- module.exports.LevelHomeFriendItemStyle = LevelHomeFriendItemStyle;
- module.exports.SenceMap = SenceMap;
- module.exports.GameRedDot = GameRedDot;
- module.exports.ADVideoLoadState = ADVideoLoadState;
|