示例#1
0
        public Dialog_Row GetRowById(int id)
        {
            Dialog_Row dj_row = null;

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