From e8e5e8270bbf244719866f0af6bd26862344eb78 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Thu, 21 Dec 2017 14:19:25 +0900 Subject: [PATCH] Rename decoder --- osu.Game.Tests/Beatmaps/Formats/OsuJsonDecoderTest.cs | 6 +++--- .../Formats/{OsuJsonDecoder.cs => JsonBeatmapDecoder.cs} | 4 ++-- osu.Game/osu.Game.csproj | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename osu.Game/Beatmaps/Formats/{OsuJsonDecoder.cs => JsonBeatmapDecoder.cs} (88%) diff --git a/osu.Game.Tests/Beatmaps/Formats/OsuJsonDecoderTest.cs b/osu.Game.Tests/Beatmaps/Formats/OsuJsonDecoderTest.cs index 7886383725..8fd7645287 100644 --- a/osu.Game.Tests/Beatmaps/Formats/OsuJsonDecoderTest.cs +++ b/osu.Game.Tests/Beatmaps/Formats/OsuJsonDecoderTest.cs @@ -141,7 +141,7 @@ namespace osu.Game.Tests.Beatmaps.Formats /// /// Reads a .osu file first with a , serializes the resulting to JSON - /// and then deserializes the result back into a through an . + /// and then deserializes the result back into a through an . /// /// The .osu file to decode. /// The after being decoded by an . @@ -149,7 +149,7 @@ namespace osu.Game.Tests.Beatmaps.Formats /// /// Reads a .osu file first with a , serializes the resulting to JSON - /// and then deserializes the result back into a through an . + /// and then deserializes the result back into a through an . /// /// The .osu file to decode. /// The after being decoded by an . @@ -168,7 +168,7 @@ namespace osu.Game.Tests.Beatmaps.Formats sw.Flush(); ms.Position = 0; - return (legacyDecoded, new OsuJsonDecoder().DecodeBeatmap(sr2)); + return (legacyDecoded, new JsonBeatmapDecoder().DecodeBeatmap(sr2)); } } } diff --git a/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs b/osu.Game/Beatmaps/Formats/JsonBeatmapDecoder.cs similarity index 88% rename from osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs rename to osu.Game/Beatmaps/Formats/JsonBeatmapDecoder.cs index e2d7414013..ce6037b43e 100644 --- a/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs +++ b/osu.Game/Beatmaps/Formats/JsonBeatmapDecoder.cs @@ -7,11 +7,11 @@ using osu.Game.Storyboards; namespace osu.Game.Beatmaps.Formats { - public class OsuJsonDecoder : Decoder + public class JsonBeatmapDecoder : Decoder { public static void Register() { - AddDecoder("{"); + AddDecoder("{"); } public override Decoder GetStoryboardDecoder() => this; diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 5440cdc8f4..223dd77b04 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -263,7 +263,7 @@ - +