mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Revert changes done to SkinConfiguration and IHasCustomColours
This commit is contained in:
parent
07f6a68179
commit
eafa97af17
@ -8,6 +8,6 @@ namespace osu.Game.Beatmaps.Formats
|
||||
{
|
||||
public interface IHasCustomColours
|
||||
{
|
||||
IDictionary<string, Color4> CustomColours { get; }
|
||||
Dictionary<string, Color4> CustomColours { get; }
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
public readonly int Keys;
|
||||
|
||||
public IDictionary<string, Color4> CustomColours { get; } = new SortedDictionary<string, Color4>();
|
||||
public Dictionary<string, Color4> CustomColours { get; set; } = new Dictionary<string, Color4>();
|
||||
|
||||
public Dictionary<string, string> ImageLookups = new Dictionary<string, string>();
|
||||
|
||||
|
@ -1,9 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Game.Beatmaps.Formats;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -12,7 +10,7 @@ namespace osu.Game.Skinning
|
||||
/// <summary>
|
||||
/// An empty skin configuration.
|
||||
/// </summary>
|
||||
public class SkinConfiguration : IEquatable<SkinConfiguration>, IHasComboColours, IHasCustomColours
|
||||
public class SkinConfiguration : IHasComboColours, IHasCustomColours
|
||||
{
|
||||
public readonly SkinInfo SkinInfo = new SkinInfo();
|
||||
|
||||
@ -47,10 +45,8 @@ namespace osu.Game.Skinning
|
||||
|
||||
public void AddComboColours(params Color4[] colours) => comboColours.AddRange(colours);
|
||||
|
||||
public IDictionary<string, Color4> CustomColours { get; } = new SortedDictionary<string, Color4>();
|
||||
public Dictionary<string, Color4> CustomColours { get; set; } = new Dictionary<string, Color4>();
|
||||
|
||||
public readonly SortedDictionary<string, string> ConfigDictionary = new SortedDictionary<string, string>();
|
||||
|
||||
public bool Equals(SkinConfiguration other) => other != null && ConfigDictionary.SequenceEqual(other.ConfigDictionary) && ((ComboColours == null && other.ComboColours == null) || ComboColours.SequenceEqual(other.ComboColours)) && CustomColours.SequenceEqual(other.CustomColours);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user