mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Add basic structure for skin configurations
This commit is contained in:
parent
4e4f3fc039
commit
c4f5b46d72
15
osu.Game/Skinning/LegacySkinDecoder.cs
Normal file
15
osu.Game/Skinning/LegacySkinDecoder.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Game.Beatmaps.Formats;
|
||||||
|
|
||||||
|
namespace osu.Game.Skinning
|
||||||
|
{
|
||||||
|
public class LegacySkinDecoder : LegacyDecoder<SkinConfiguration>
|
||||||
|
{
|
||||||
|
public LegacySkinDecoder(int version)
|
||||||
|
: base(version)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
18
osu.Game/Skinning/SkinConfiguration.cs
Normal file
18
osu.Game/Skinning/SkinConfiguration.cs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using osu.Game.Beatmaps.Formats;
|
||||||
|
using OpenTK.Graphics;
|
||||||
|
|
||||||
|
namespace osu.Game.Skinning
|
||||||
|
{
|
||||||
|
public class SkinConfiguration : IHasComboColours, IHasCustomColours
|
||||||
|
{
|
||||||
|
public readonly SkinInfo SkinInfo = new SkinInfo();
|
||||||
|
|
||||||
|
public List<Color4> ComboColours { get; set; } = new List<Color4>();
|
||||||
|
|
||||||
|
public Dictionary<string, Color4> CustomColours { get; set; } = new Dictionary<string, Color4>();
|
||||||
|
}
|
||||||
|
}
|
@ -873,7 +873,9 @@
|
|||||||
<Compile Include="Screens\Tournament\Teams\StorageBackedTeamList.cs" />
|
<Compile Include="Screens\Tournament\Teams\StorageBackedTeamList.cs" />
|
||||||
<Compile Include="Skinning\DefaultSkin.cs" />
|
<Compile Include="Skinning\DefaultSkin.cs" />
|
||||||
<Compile Include="Skinning\LegacySkin.cs" />
|
<Compile Include="Skinning\LegacySkin.cs" />
|
||||||
|
<Compile Include="Skinning\LegacySkinDecoder.cs" />
|
||||||
<Compile Include="Skinning\Skin.cs" />
|
<Compile Include="Skinning\Skin.cs" />
|
||||||
|
<Compile Include="Skinning\SkinConfiguration.cs" />
|
||||||
<Compile Include="Skinning\SkinFileInfo.cs" />
|
<Compile Include="Skinning\SkinFileInfo.cs" />
|
||||||
<Compile Include="Skinning\SkinInfo.cs" />
|
<Compile Include="Skinning\SkinInfo.cs" />
|
||||||
<Compile Include="Skinning\SkinManager.cs" />
|
<Compile Include="Skinning\SkinManager.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user