示例#1
0
 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);
 }
示例#2
0
 public static void Save()
 {
     SdlSerializer.Serialize <Settings>(Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FEZ"), "Settings"), SettingsManager.Settings);
 }