Пример #1
0
 /// <summary>
 /// Will decompile all mods in a folder and in the sub folders and put them into their respective folders
 /// </summary>
 /// <param name="path">The path of the folder</param>
 public static void DeCompile(string path)
 {
     //compile the biomes
     Compiled.Biome[]   compiled   = BiomeCompiler.CompiledFromString(LoadAllMods(path));
     Decompiled.Biome[] decompiled = BiomeCompiler.Decompile(compiled);
     File.WriteAllText(Path.Combine(path, "biomes.json"), BiomeCompiler.DecompiledToString(decompiled));
 }
Пример #2
0
 /// <summary>
 /// Loads all mods and puts them into memory
 /// </summary>
 public static void Init()
 {
     biomes = BiomeCompiler.CompiledFromString(File.ReadAllText("mods/vanilla.woc"));
 }