好友:初步申请到查看链

This commit is contained in:
luying
2021-02-02 14:16:56 +08:00
parent a9e2b79c79
commit 5df5f6ed93
15 changed files with 582 additions and 16 deletions
@@ -0,0 +1,30 @@
// 好友表
import { readJsonFile } from '../util'
import { FILENAME } from '../../consts'
export interface DicRoleFriend {
// id
readonly id: number;
// 主公等级
readonly lv: number;
// 好友数量
readonly frdCnt: number;
// 每日可收取好友情谊点上限
readonly receiveMax: number;
// 每日可赠送好友情谊点上限
readonly sendMax: number;
}
const str = readJsonFile(FILENAME.DIC_ROLE_FRIEND);
let arr = JSON.parse(str);
export const dicRoleFriend = new Map<number, DicRoleFriend>();
arr.forEach(o => {
dicRoleFriend.set(o.lv, o);
});
arr = undefined;