// ------------------------------------------------------------------------------
|
// <autogenerated>
|
// This code was generated by a tool.
|
// Mono Runtime Version: 2.0.50727.1433
|
//
|
// Changes to this file may cause incorrect behavior and will be lost if
|
// the code is regenerated.
|
// </autogenerated>
|
// ------------------------------------------------------------------------------
|
|
using System.Collections.Generic;
|
|
|
public partial class DienstgradConfig : IConfigPostProcess
|
{
|
private static Dictionary<int, List<DienstgradConfig>> m_titles = new Dictionary<int, List<DienstgradConfig>>();
|
|
private static Dictionary<int, int[]> m_TitleAttrTypeDic = new Dictionary<int, int[]>();
|
private static Dictionary<int, int[]> m_TitleAttrValueDic = new Dictionary<int, int[]>();
|
|
public void OnConfigParseCompleted()
|
{
|
List<DienstgradConfig> list = null;
|
m_titles.TryGetValue(Type, out list);
|
if (list != null)
|
{
|
list.Add(this);
|
}
|
else
|
{
|
list = new List<DienstgradConfig>();
|
list.Add(this);
|
m_titles.Add(Type, list);
|
}
|
|
if (!m_TitleAttrTypeDic.ContainsKey(ID))
|
{
|
m_TitleAttrTypeDic.Add(ID, LightType);
|
}
|
if (!m_TitleAttrValueDic.ContainsKey(ID))
|
{
|
m_TitleAttrValueDic.Add(ID, LightAttribute);
|
}
|
}
|
|
public static List<DienstgradConfig> GetTitlesByType(TitleType type)
|
{
|
List<DienstgradConfig> list = null;
|
m_titles.TryGetValue((int)type, out list);
|
return list;
|
}
|
|
public static int[] GetTitleAttrType(int _title)
|
{
|
int[] array = null;
|
m_TitleAttrTypeDic.TryGetValue(_title, out array);
|
return array;
|
}
|
|
public static int[] GetTitleAttrValue(int _title)
|
{
|
int[] array = null;
|
m_TitleAttrValueDic.TryGetValue(_title, out array);
|
return array;
|
}
|
}
|