✨ feat(稷下学宫): ff931afe4到7421822f6
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 关卡配置表
|
||||
*/
|
||||
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicRougeNode {
|
||||
readonly id: number;
|
||||
readonly nodeId: number; // 关卡id
|
||||
readonly nodeType: number; // 试炼类型 普通关、精英关、boss关、挑战点、问号点、休整点、商店
|
||||
readonly param: number; // 普通关、精英关、boss关的对应关卡id
|
||||
}
|
||||
|
||||
|
||||
export const dicRougeNode = new Map<number, DicRougeNode>();
|
||||
export function loadRougeNode() {
|
||||
dicRougeNode.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ROUGE_NODE);
|
||||
|
||||
arr.forEach(o => {
|
||||
dicRougeNode.set(o.nodeId, o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user