From 512351c0fcba562a8dcef68b1ab40e2b33570079 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 18 Nov 2023 15:44:02 -0500 Subject: [PATCH] Adjust to use byml object --- Fushigi/course/CourseInfo.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Fushigi/course/CourseInfo.cs b/Fushigi/course/CourseInfo.cs index 763ced84..a3e465a7 100644 --- a/Fushigi/course/CourseInfo.cs +++ b/Fushigi/course/CourseInfo.cs @@ -10,7 +10,7 @@ namespace Fushigi.course { [Serializable] - public class CourseInfo + public class CourseInfo : BymlObject { public string CourseDifficulty { get; set; } public string CourseNameLabel { get; set; } @@ -29,14 +29,14 @@ public CourseInfo(string name) var courseFilePath = FileUtil.FindContentPath(Path.Combine("Stage", "CourseInfo", $"{name}.game__stage__CourseInfo.bgyml")); var byml = new Byml.Byml(new MemoryStream(File.ReadAllBytes(courseFilePath))); - BymlSerialize.Deserialize(this, byml.Root); + this.Load((BymlHashTable)byml.Root); Console.WriteLine(); } public void Save(string name) { - var root = BymlSerialize.Serialize(this); + var root = this.Serialize(); var courseFilePath = FileUtil.FindContentPath(Path.Combine("Stage", "CourseInfo", $"{name}.game__stage__CourseInfo.bgyml")); using (var fs = new FileStream(courseFilePath, FileMode.Create, FileAccess.Write))