消消方块阵换皮表情
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.7 KiB

1 week ago
import { TableNames } from "../game/ConfigTableData";
/**章节解锁状态 */
export enum ChapterLockStatus {
Finished,//已完成
Current,//当前章节
Locked,//未解锁
}
/**章节模式类型 */
export enum BattleType {
/**关卡 */
Level = 0,
/**无尽模式 */
InfiniteMode = 1,
/**逐高秘境 */
SpeedMode = 2,
/**Boss模式 */
BossMode = 3,
/**绝世橙武.弹 */
OrangeWeaponMode_Dan = 4,
/**橙武模式电 */
OrangeWeaponMode_Dian = 5,
/***橙武模式.鸭*/
OrangeWeaponMode_Ya = 6,
/**宝箱模式 */
BoxMode = 101,
GachaMode = 102,
}
/**章节难度 */
export enum ChapterDifficulty {
/**简单难度 */
Easy = 1,
/**普通难度 */
Normal = 2,
/**困难难度 */
Hard = 3,
/**地狱难度 */
Hell = 4,
/**末世难度 */
Eschatology = 5,
}
/**章节表数据管理 */
export class ChapterDataManager {
/**获取章节配表数据 */
public static getAllChapterList() {
return gg.data.table.getTableList<ITableChapter>(TableNames.Chapter)
}
/**获取章节总数 */
public static getAllChapterAccount() {
let allList = this.getAllChapterList()
//过滤到id大于1000的章节,只保留普通章节其他的章节都是普通章节变化出来的
allList = allList.filter(x => x.id <= 1000)
return allList.length
}
/**
* id获取章节数据
* @param id id
*/
public static getChapterDataById(id) {
let allList = this.getAllChapterList()
let config = allList.find(x => x.id == id)
// console.log('获取特定章节的配表数据==id,config=',id,config)
return config
}
}