zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Generate/Data/Partial/EquipAffixConfigCategory.Cu...

34 lines
973 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET;
using System;
using System.Collections.Generic;
using System.Text;
namespace Cal.DataTable
{
public partial class EquipAffixConfigCategory
{
/// <summary>
/// 组合 key = 稀有度value = vid
/// </summary>
public UnOrderMultiMap<int, int> vidDic = new();
/// <summary>
/// 组合 key = vidvalue = level
/// </summary>
public UnOrderMultiMap<int, int> levelDic = new();
public override void EndInit()
{
base.EndInit();
vidDic.Clear();
levelDic.Clear();
2021-04-11 19:50:39 +08:00
foreach (EquipAffixConfig config in this.dict.Values)
2021-04-08 20:09:59 +08:00
{
int vid = (int)(config.Id / 100000);
int quality = (int)(config.Id % 100000/10000);
int level = (int)(config.Id % 100000%10000);
vidDic.Add(quality, vid);
levelDic.Add(vid, level);
}
}
}
}