Skip to content

Commit

Permalink
should apply those convertors into encoder/decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Feb 21, 2022
1 parent 7125502 commit 53f8ba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ protected override void ParseStreamInto(LineBufferedReader stream, Beatmap outpu
var globalSetting = JsonSerializableExtensions.CreateGlobalSettings();
globalSetting.Converters.Add(new CultureInfoConverter());
globalSetting.Converters.Add(new RomajiTagConverter());
globalSetting.Converters.Add(new RomajiTagsConverter());
globalSetting.Converters.Add(new RubyTagConverter());
globalSetting.Converters.Add(new RubyTagsConverter());
globalSetting.Converters.Add(new TimeTagConverter());
globalSetting.Converters.Add(new TimeTagsConverter());
globalSetting.Converters.Add(new ToneConverter());

// create id if object is by reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ public string Encode(Beatmap output)
var globalSetting = JsonSerializableExtensions.CreateGlobalSettings();
globalSetting.Converters.Add(new CultureInfoConverter());
globalSetting.Converters.Add(new RomajiTagConverter());
globalSetting.Converters.Add(new RomajiTagsConverter());
globalSetting.Converters.Add(new RubyTagConverter());
globalSetting.Converters.Add(new RubyTagsConverter());
globalSetting.Converters.Add(new TimeTagConverter());
globalSetting.Converters.Add(new TimeTagsConverter());
globalSetting.Converters.Add(new ToneConverter());

// replace string stream.ReadToEnd().Serialize(output);
Expand Down

0 comments on commit 53f8ba1

Please sign in to comment.