コード例 #1
0
 public bool Load(string path, bool editor)
 {
     this.Clear();
     if (!DbfXml.Load(this, path, editor))
     {
         this.Clear();
         return(false);
     }
     return(true);
 }
コード例 #2
0
    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);
    }
コード例 #3
0
    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);
    }