public void Exchange(JsonObject json) { ScoreBook.Exchange(json["ScoreBook"]); NoteBook.Exchange(json["NoteBook"]); MadcaMusicData.Exchange(json["MusicData"]); FumenAuthor = json["FumenDesigner"]; FumenDifficulity = FumenData.FumenDifficulity.Parse(typeof(FumenDifficulity), json["FumenDifficulity"]); FumenConstant = double.Parse(json["FumenConstant"]); FumenLevel.Exchange(json["FumenLevel"]); StartBpm = double.Parse(json["StartBpm"]); }
public JsonObject Exchange() { return(new JsonObject() { ["ScoreBook"] = ScoreBook.Exchange(), ["NoteBook"] = NoteBook.Exchange(), ["MusicData"] = MadcaMusicData.Exchange(), ["FumenDesigner"] = FumenAuthor, ["FumenDifficulity"] = FumenDifficulity, ["FumenConstant"] = FumenConstant, ["FumenLevel"] = FumenLevel.Exchange(), ["StartBpm"] = StartBpm }); }