Ejemplo n.º 1
0
    public static WorldFile OpenOrCreate(string path)
    {
#if DISABLE
        return(null);
#else
        var wf = new WorldFile();
        wf.LoadIndexFile(path);
        if (wf._chunkFiles.Count > 0)
        {
            wf.OpenChunkFile(path);
        }
        else
        {
            wf.NewChunkFile(path);
        }
        return(wf);
#endif
    }