public bool Load(string path, bool editor) { this.Clear(); if (!DbfXml.Load(this, path, editor)) { this.Clear(); return(false); } return(true); }
public static Dbf Load(string name, string path, bool editor) { Dbf dbf = new Dbf(); dbf.SetName(name); dbf.Clear(); if (!DbfXml.Load(dbf, path, editor)) { dbf.Clear(); Debug.LogError(string.Format("Dbf.Load() - failed to load {0}", name)); } return(dbf); }
public static Dbf Load(string name, string xml, RecordAddedListener listener = null) { Dbf dbf = new Dbf(listener); dbf.SetName(name); dbf.Clear(); if (!DbfXml.Load(dbf, xml)) { dbf.Clear(); Debug.LogError(string.Format("Dbf.Load() - failed to load {0}", name)); } return(dbf); }