抽卡:武将池使用招募表
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// 排行榜表
|
||||
import { readJsonFile } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicRecruit {
|
||||
|
||||
// id
|
||||
readonly id: number;
|
||||
// 武将id
|
||||
readonly actorId: number;
|
||||
// 权重
|
||||
readonly weight: number;
|
||||
|
||||
}
|
||||
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_RECRUIT);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicRecruit = new Array<DicRecruit>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicRecruit.push(o);
|
||||
});
|
||||
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user