Exemplo n.º 1
0
        public Item_Pack_Row GetRowById(int id)
        {
            Item_Pack_Row dj_row = null;

            m_dict.TryGetValue(id, out dj_row);
            return(dj_row);
        }
Exemplo n.º 2
0
 public bool ParseTable(JArray jay)
 {
     m_dict = new Dictionary <int, Item_Pack_Row>();
     for (int i = 0; i < jay.Count; ++i)
     {
         var           tmpjobj   = jay[i] as JObject;
         Item_Pack_Row table_row = new Item_Pack_Row();
         table_row.ParseRow(tmpjobj);
         m_dict.Add(table_row.id, table_row);
     }
     IsLoad = true;
     return(true);
 }