2019-08-30 05:39:02 +00:00
// 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.
2020-04-03 02:55:52 +00:00
using osu.Game.Rulesets.Mania.UI ;
2019-08-30 05:39:02 +00:00
using osu.Game.Skinning ;
namespace osu.Game.Rulesets.Mania
{
2019-08-30 06:10:11 +00:00
public class ManiaSkinComponent : GameplaySkinComponent < ManiaSkinComponents >
2019-08-30 05:39:02 +00:00
{
2020-04-03 02:55:52 +00:00
/// <summary>
/// The intended <see cref="Column"/> index for this component.
/// May be null if the component does not exist in a <see cref="Column"/>.
/// </summary>
public readonly int? TargetColumn ;
2020-04-02 09:39:49 +00:00
2020-04-03 02:55:52 +00:00
/// <summary>
/// Creates a new <see cref="ManiaSkinComponent"/>.
/// </summary>
/// <param name="component">The component.</param>
/// <param name="targetColumn">The intended <see cref="Column"/> index for this component. May be null if the component does not exist in a <see cref="Column"/>.</param>
public ManiaSkinComponent ( ManiaSkinComponents component , int? targetColumn = null )
2019-08-30 05:39:02 +00:00
: base ( component )
{
2020-04-02 09:39:49 +00:00
TargetColumn = targetColumn ;
2019-08-30 05:39:02 +00:00
}
protected override string RulesetPrefix = > ManiaRuleset . SHORT_NAME ;
protected override string ComponentName = > Component . ToString ( ) . ToLower ( ) ;
}
2020-03-30 14:18:38 +00:00
public enum ManiaSkinComponents
{
2020-03-31 06:24:13 +00:00
ColumnBackground ,
HitTarget ,
2020-03-31 06:29:25 +00:00
KeyArea ,
Note ,
HoldNoteHead ,
HoldNoteTail ,
2020-03-31 07:42:35 +00:00
HoldNoteBody ,
2020-04-08 06:08:13 +00:00
HitExplosion ,
2020-04-08 07:20:26 +00:00
StageBackground ,
StageForeground ,
2020-03-30 14:18:38 +00:00
}
2019-08-30 05:39:02 +00:00
}