73 throw new InvalidOperationException($
"Not enough free space to convert world. {num / 1024 / 1024}MB required.");
static void MoveFile(string sourcePath, string destinationPath)
static IEnumerable< string > ListDirectoryNames(string path)
static IEnumerable< string > ListFileNames(string path)
static Stream OpenFile(string path, OpenFileMode openFileMode)
static string GetExtension(string path)
static void DeleteDirectoryRecursive(string path)
static string GetFileNameWithoutExtension(string path)
static void MoveDirectory(string path, string newPath)
static long GetFileSize(string path)
static void DeleteFile(string path)
static string CombinePaths(params string[] paths)
bool LoadChunk(TerrainChunk chunk)
IEnumerable< Point2 > Chunks
virtual void SaveChunkData(TerrainChunk chunk)
override void ConvertProjectXml(XElement projectNode)
void ConvertChunks(string directoryName)
override string SourceVersion
override string TargetVersion
void ConvertProject(string directoryName)
override void ConvertWorld(string directoryName)
static void SetAttributeValue(XElement node, string attributeName, object value)
static XElement LoadXmlFromStream(Stream stream, Encoding encoding, bool throwOnError)
static void SaveXmlToStream(XElement node, Stream stream, Encoding encoding, bool throwOnError)