From 851c20aff0be3c55fc84c47d8b137de3cbc59222 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Thu, 7 Dec 2017 11:17:32 +0900 Subject: [PATCH] Add a few comments --- osu.Game/Audio/SampleInfo.cs | 4 ++++ osu.Game/IO/Serialization/IJsonSerializable.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/osu.Game/Audio/SampleInfo.cs b/osu.Game/Audio/SampleInfo.cs index f8b5bf33d9..3c3a64dbb2 100644 --- a/osu.Game/Audio/SampleInfo.cs +++ b/osu.Game/Audio/SampleInfo.cs @@ -15,6 +15,10 @@ namespace osu.Game.Audio public const string HIT_NORMAL = @"hitnormal"; public const string HIT_CLAP = @"hitclap"; + /// + /// The that is used for and + /// if the values have not already been provided by the hitobject. + /// [JsonIgnore] public SoundControlPoint ControlPoint; diff --git a/osu.Game/IO/Serialization/IJsonSerializable.cs b/osu.Game/IO/Serialization/IJsonSerializable.cs index 8d10f0b291..38e7f47656 100644 --- a/osu.Game/IO/Serialization/IJsonSerializable.cs +++ b/osu.Game/IO/Serialization/IJsonSerializable.cs @@ -20,6 +20,10 @@ namespace osu.Game.IO.Serialization public static T DeepClone(this T obj) where T : IJsonSerializable => Deserialize(Serialize(obj)); + /// + /// Creates the default that should be used for all s. + /// + /// public static JsonSerializerSettings CreateGlobalSettings() => new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore,