public void LinkToForestSet(string setName) { ForestPreset set = new ForestPreset(setName); if (set.Exists()) { set.Load(); set.LinkedSkybox = Name; } set.Save(); }
public static SkinPreset[] GetAllPresets() { DirectoryInfo info = new DirectoryInfo(ForestPath); FileInfo[] files = info.GetFiles(); if (files.Length == 0) { return(null); } SkinPreset[] result = new SkinPreset[files.Length]; for (int i = 0; i < files.Length; i++) { result[i] = new ForestPreset(files[i].Name.Replace(Extension, string.Empty)); result[i].Load(); } return(result); }