1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 03:57:25 +08:00
osu-lazer/osu.Game/Storyboards/StoryboardLayer.cs

39 lines
1.0 KiB
C#
Raw 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.
2018-04-13 17:19:50 +08:00
using osu.Game.Storyboards.Drawables;
using System.Collections.Generic;
namespace osu.Game.Storyboards
{
public class StoryboardLayer
{
2020-03-25 10:08:08 +08:00
public readonly string Name;
public readonly int Depth;
public readonly bool Masking;
public bool VisibleWhenPassing = true;
public bool VisibleWhenFailing = true;
2018-04-13 17:19:50 +08:00
public List<IStoryboardElement> Elements = new List<IStoryboardElement>();
2018-04-13 17:19:50 +08:00
public StoryboardLayer(string name, int depth, bool masking = true)
2018-04-13 17:19:50 +08:00
{
Name = name;
Depth = depth;
Masking = masking;
2018-04-13 17:19:50 +08:00
}
public void Add(IStoryboardElement element)
{
Elements.Add(element);
2018-04-13 17:19:50 +08:00
}
public DrawableStoryboardLayer CreateDrawable()
2020-05-19 03:12:14 +08:00
=> new DrawableStoryboardLayer(this) { Depth = Depth, Name = Name };
2018-04-13 17:19:50 +08:00
}
}