26 lines
448 B
TypeScript
26 lines
448 B
TypeScript
// 排行榜表
|
|
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; |