抽卡:武将池使用招募表

This commit is contained in:
luying
2021-05-12 09:41:16 +08:00
parent 68016e5c49
commit d5d014c2ba
4 changed files with 34 additions and 4 deletions
+26
View File
@@ -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;