1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 05:47:18 +08:00
osu-lazer/osu.Game.Rulesets.Mania/ManiaSkinComponent.cs

48 lines
1.6 KiB
C#
Raw Permalink Normal View History

// 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 osu.Game.Rulesets.Mania.Beatmaps;
2020-04-03 11:55:52 +09:00
using osu.Game.Rulesets.Mania.UI;
using osu.Game.Skinning;
namespace osu.Game.Rulesets.Mania
{
2019-08-30 15:10:11 +09:00
public class ManiaSkinComponent : GameplaySkinComponent<ManiaSkinComponents>
{
/// <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>
public readonly StageDefinition? StageDefinition;
2020-04-03 11:55:52 +09:00
/// <summary>
/// Creates a new <see cref="ManiaSkinComponent"/>.
/// </summary>
/// <param name="component">The component.</param>
/// <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>
2021-05-12 16:35:05 +09:00
public ManiaSkinComponent(ManiaSkinComponents component, StageDefinition? stageDefinition = null)
: base(component)
{
StageDefinition = stageDefinition;
}
protected override string RulesetPrefix => ManiaRuleset.SHORT_NAME;
protected override string ComponentName => Component.ToString().ToLower();
}
2020-03-30 23:18:38 +09:00
public enum ManiaSkinComponents
{
2020-03-31 15:24:13 +09:00
ColumnBackground,
HitTarget,
2020-03-31 15:29:25 +09:00
KeyArea,
Note,
HoldNoteHead,
HoldNoteTail,
2020-03-31 16:42:35 +09:00
HoldNoteBody,
2020-04-08 15:08:13 +09:00
HitExplosion,
2020-04-08 16:20:26 +09:00
StageBackground,
StageForeground,
2020-03-30 23:18:38 +09:00
}
}