1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 02:07:27 +08:00
osu-lazer/osu.Game/Storyboards/StoryboardSample.cs

27 lines
717 B
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
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
public double Time;
public float Volume;
public StoryboardSample(string path, double time, float volume)
{
Path = path;
Time = time;
Volume = volume;
}
2018-06-28 12:43:56 +08:00
public Drawable CreateDrawable() => new DrawableStoryboardSample(this);
2018-04-13 17:19:50 +08:00
}
}