Beispiel #1
0
        public void LinkToForestSet(string setName)
        {
            ForestPreset set = new ForestPreset(setName);

            if (set.Exists())
            {
                set.Load();
                set.LinkedSkybox = Name;
            }
            set.Save();
        }
Beispiel #2
0
        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);
        }