2019-08-30 13:39:02 +08: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.
2022-06-17 15:37:17 +08:00
#nullable disable
2020-08-25 00:21:27 +08:00
using osu.Game.Rulesets.Mania.Beatmaps ;
2020-04-03 10:55:52 +08:00
using osu.Game.Rulesets.Mania.UI ;
2019-08-30 13:39:02 +08:00
using osu.Game.Skinning ;
namespace osu.Game.Rulesets.Mania
{
2019-08-30 14:10:11 +08:00
public class ManiaSkinComponent : GameplaySkinComponent < ManiaSkinComponents >
2019-08-30 13:39:02 +08:00
{
2020-08-25 00:21:27 +08:00
/// <summary>
/// The intended <see cref="StageDefinition"/> for this component.
/// May be null if the component is not a direct member of a <see cref="Stage"/>.
/// </summary>
2022-10-04 17:24:49 +08:00
public readonly StageDefinition StageDefinition ;
2020-08-25 00:21:27 +08:00
2020-04-03 10:55:52 +08:00
/// <summary>
/// Creates a new <see cref="ManiaSkinComponent"/>.
/// </summary>
/// <param name="component">The component.</param>
2020-08-25 00:21:27 +08:00
/// <param name="stageDefinition">The intended <see cref="StageDefinition"/> for this component. May be null if the component is not a direct member of a <see cref="Stage"/>.</param>
2022-10-04 17:24:49 +08:00
public ManiaSkinComponent ( ManiaSkinComponents component , StageDefinition stageDefinition = null )
2019-08-30 13:39:02 +08:00
: base ( component )
{
2020-08-25 00:21:27 +08:00
StageDefinition = stageDefinition ;
2019-08-30 13:39:02 +08:00
}
protected override string RulesetPrefix = > ManiaRuleset . SHORT_NAME ;
2022-06-20 20:39:47 +08:00
protected override string ComponentName = > Component . ToString ( ) . ToLowerInvariant ( ) ;
2019-08-30 13:39:02 +08:00
}
2020-03-30 22:18:38 +08:00
public enum ManiaSkinComponents
{
2020-03-31 14:24:13 +08:00
ColumnBackground ,
HitTarget ,
2020-03-31 14:29:25 +08:00
KeyArea ,
Note ,
HoldNoteHead ,
HoldNoteTail ,
2020-03-31 15:42:35 +08:00
HoldNoteBody ,
2020-04-08 14:08:13 +08:00
HitExplosion ,
2020-04-08 15:20:26 +08:00
StageBackground ,
StageForeground ,
2020-03-30 22:18:38 +08:00
}
2019-08-30 13:39:02 +08:00
}