123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- // 在需要使用的项目里, 直接这样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:签约
- var UserInformationRelateOptType = cc.Enum({
- Redeem: 1,
- Loot: 2,
- Sign: 3
- });
- var ReportType = cc.Enum({
- ID: "id",
- // 上报事件类型, 0是普通上报, 1是升级建筑
- Event: "cmd",
- Seq: "seq",
- /** 总金额 */
- GrossIncome: "gi",
- /** 星星数 */
- Stars: "s",
- /** 建筑 */
- Build: "b",
- /** 建筑 */
- UnLockBuild: "ub",
- /** 建筑等级 */
- Level: "l",
- /** 事件戳 */
- Timestamp: "t",
- /** 未收金币的次数 */
- NotPickupCoinCount: "cc"
- });
- 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",
- });
- 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
- });
- // 将需要导出的枚举用这种方式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.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;
|