2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
using osu.Game.Storyboards.Drawables;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Storyboards
|
|
|
|
|
{
|
|
|
|
|
public class StoryboardLayer
|
|
|
|
|
{
|
|
|
|
|
public string Name;
|
|
|
|
|
public int Depth;
|
|
|
|
|
public bool EnabledWhenPassing = true;
|
|
|
|
|
public bool EnabledWhenFailing = true;
|
|
|
|
|
|
2019-03-26 07:16:28 +00:00
|
|
|
|
public List<IStoryboardElement> Elements = new List<IStoryboardElement>();
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
public StoryboardLayer(string name, int depth)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
Depth = depth;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Add(IStoryboardElement element)
|
|
|
|
|
{
|
2019-03-26 07:16:28 +00:00
|
|
|
|
Elements.Add(element);
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DrawableStoryboardLayer CreateDrawable()
|
|
|
|
|
=> new DrawableStoryboardLayer(this) { Depth = Depth, };
|
|
|
|
|
}
|
|
|
|
|
}
|