using System.Collections.Generic;
|
|
public partial class EquipColorPlaceConfig : IConfigPostProcess
|
{
|
private static List<int> itemColorList = new List<int>();
|
|
public void OnConfigParseCompleted()
|
{
|
|
}
|
|
public static List<int> GetItemColorList()
|
{
|
if (itemColorList.IsNullOrEmpty())
|
{
|
var keys = GetKeys();
|
for (int i = 0; i < keys.Count; i++)
|
{
|
int ItemColor = Get(keys[i]).ItemColor;
|
if (!itemColorList.Contains(ItemColor))
|
itemColorList.Add(ItemColor);
|
}
|
}
|
return itemColorList;
|
}
|
|
}
|