2019-01-24 16:43:03 +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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
2018-06-28 12:43:56 +08:00
|
|
|
|
using osu.Game.Storyboards.Drawables;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Storyboards
|
|
|
|
|
{
|
|
|
|
|
public class StoryboardSample : IStoryboardElement
|
|
|
|
|
{
|
|
|
|
|
public string Path { get; set; }
|
2018-06-28 12:43:56 +08:00
|
|
|
|
public bool IsDrawable => true;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2019-03-26 15:16:28 +08:00
|
|
|
|
public double StartTime { get; }
|
|
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
|
public float Volume;
|
|
|
|
|
|
|
|
|
|
public StoryboardSample(string path, double time, float volume)
|
|
|
|
|
{
|
|
|
|
|
Path = path;
|
2019-03-26 15:16:28 +08:00
|
|
|
|
StartTime = time;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
Volume = volume;
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-28 12:43:56 +08:00
|
|
|
|
public Drawable CreateDrawable() => new DrawableStoryboardSample(this);
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|