protected override void ParseData(SqliteDataReader reader) { if (reader == null || !reader.HasRows) { return; } while (reader.Read()) { DBSoulHoleItem ad = new DBSoulHoleItem(); ad.hole_id = DBTextResource.ParseUI(GetReaderString(reader, "hole_id")); ad.open_cond = DBTextResource.ParseUI(GetReaderString(reader, "open_cond")); string str_inlay_type = GetReaderString(reader, "inlay_type"); if (string.IsNullOrEmpty(str_inlay_type)) { ad.inlay_type = new List <uint>(); } else { ad.inlay_type = DBTextResource.ParseArrayUint(str_inlay_type, ","); } data.Add(ad.hole_id, ad); for (int i = 0; i < ad.inlay_type.Count; i++) { limitedList.Add(ad.inlay_type[i]); } } }
public DBSoulHoleItem GetData(uint hole) { DBSoulHoleItem ad = null; data.TryGetValue(hole, out ad); return(ad); }