Esempio n. 1
0
 public AwardData this[int id]
 {
     get
     {
         AwardData data = null;
         Dict.TryGetValue(id, out data);
         return(data);
     }
 }
Esempio n. 2
0
        public void initData(string content)
        {
            Dict.Clear();
            string[] array = content.Split(new string[] { StaticDataConstant.WIN_ENTER }, System.StringSplitOptions.RemoveEmptyEntries);

            int length = array.Length;

            for (int i = 4; i < length; i++)

            {
                AwardData data = new AwardData(array[i]);

                Dict[data.ID] = data;
            }
        }