34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
|
using System.Collections.Generic;
|
|||
|
using ET;
|
|||
|
|
|||
|
namespace Cal.DataTable
|
|||
|
{
|
|||
|
public partial class StarSoulAttributeConfigCategory
|
|||
|
{
|
|||
|
public List<KeyValuePair<AttributeType, long>> viceKeyList = new List<KeyValuePair<AttributeType, long>>(40);
|
|||
|
public List<int> viceWeigt = new List<int>(40);
|
|||
|
public List<int> mainWeigt = new List<int>(40);
|
|||
|
public UnOrderMultiMap<int, long> mainAttributeDic = new UnOrderMultiMap<int, long>();
|
|||
|
public override void EndInit()
|
|||
|
{
|
|||
|
base.EndInit();
|
|||
|
foreach (var kv in this.dict)
|
|||
|
{
|
|||
|
var config = kv.Value;
|
|||
|
if (config.Type == 2)
|
|||
|
{
|
|||
|
viceKeyList.Add(KeyValuePair.Create<AttributeType, long>((AttributeType) config.Key,config.Id));
|
|||
|
viceWeigt.Add(config.ViceWeight);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
if (config.Quality == 1)
|
|||
|
{
|
|||
|
mainWeigt.Add(config.ViceWeight);
|
|||
|
}
|
|||
|
mainAttributeDic.Add(config.Quality,config.Id);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|