解析修改:playerCeService

This commit is contained in:
luying
2020-12-15 19:54:32 +08:00
parent 9fe95f2a4e
commit 7f256c996e
8 changed files with 89 additions and 193 deletions

View File

@@ -15,8 +15,10 @@ const str = readJsonFile(FILENAME.DIC_FRIEND_SHIP_LEVEL);
let arr = JSON.parse(str);
export const dicFriendShipLevel = new Array<DicFriendShipLevel>();
export const dicFriendShipLevelMap = new Map<number, DicFriendShipLevel>();
arr.forEach(o => {
dicFriendShipLevel.push(o);
dicFriendShipLevelMap.set(o.level, o);
});
dicFriendShipLevel.sort(function(a, b) {
return a.level - b.level;