public void Fill(string contentRoot) { MapTree.TreeFillContext context = new MapTree.TreeFillContext() { ContentRoot = contentRoot }; this.Root = new MapNode() { LevelName = "NATURE_HUB" }; context.LoadedNodes.Add("NATURE_HUB", this.Root); this.Root.Fill(context, (MapNode)null, FaceOrientation.Front); SdlSerializer.Serialize <MapTree>(contentRoot + "\\MapTree.map.sdl", this); }
public static void Save() { SdlSerializer.Serialize <Settings>(Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FEZ"), "Settings"), SettingsManager.Settings); }