public void LoadMasteryFile(string FileName)
 {
     if (MasteryFile != null)
     {
         if (MasteryFile.WorldName != FileName)
         {
             MasteryFile.Close();
             MasteryFile = new MasteryWorldFile(FileName);
         }
     }
     else
     {
         MasteryFile = new MasteryWorldFile(FileName);
     }
 }
        public void CreateMasteryFile()
        {
            /*
             * if (MasteryFile != null)
             * {
             * //MasteryFile.Close();
             *
             * }
             */

            if (MasteryFile != null)
            {
                return;
            }
            MasteryFile = new MasteryWorldFile();
            float ChunkSize   = MasteryFile.Settings.ChunkSize;
            float MinDistance = -ChunkSize * MasteryFile.Settings.ChunkSelectionRadius;
            float MaxDistance = ChunkSize * (MasteryFile.Settings.ChunkSelectionRadius + 1);

            ChunkSelectorQuad.SetVertices(new Vector3(MinDistance, MinDistance, 0), new Vector3(MaxDistance, MinDistance, 0), new Vector3(MinDistance, MaxDistance, 0), new Vector3(MaxDistance, MaxDistance, 0));
        }