2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-09-08 05:55:05 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
2017-09-15 19:35:41 +08:00
|
|
|
|
using System;
|
2017-09-08 05:55:05 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Storyboards
|
|
|
|
|
{
|
2017-09-13 17:22:24 +08:00
|
|
|
|
public class StoryboardSample : IStoryboardElement
|
2017-09-08 05:55:05 +08:00
|
|
|
|
{
|
2017-09-08 19:04:53 +08:00
|
|
|
|
public string Path { get; set; }
|
2017-09-15 17:23:37 +08:00
|
|
|
|
public bool IsDrawable => false;
|
|
|
|
|
|
2017-09-08 05:55:05 +08:00
|
|
|
|
public double Time;
|
|
|
|
|
public float Volume;
|
|
|
|
|
|
2017-09-13 17:22:24 +08:00
|
|
|
|
public StoryboardSample(string path, double time, float volume)
|
2017-09-08 05:55:05 +08:00
|
|
|
|
{
|
|
|
|
|
Path = path;
|
|
|
|
|
Time = time;
|
|
|
|
|
Volume = volume;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Drawable CreateDrawable()
|
2017-09-15 19:35:41 +08:00
|
|
|
|
{
|
|
|
|
|
throw new InvalidOperationException();
|
|
|
|
|
}
|
2017-09-08 05:55:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|