1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00
osu-lazer/osu.Game/Storyboards/CommandTrigger.cs

25 lines
818 B
C#
Raw Normal View History

2017-09-08 05:55:05 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Storyboards
{
public class CommandTrigger : CommandTimelineGroup
{
private string triggerName;
private double startTime;
private double endTime;
private int groupNumber;
public CommandTrigger(string triggerName, double startTime, double endTime, int groupNumber)
{
this.triggerName = triggerName;
this.startTime = startTime;
this.endTime = endTime;
this.groupNumber = groupNumber;
}
public override string ToString()
=> $"{triggerName} {startTime} -> {endTime} ({groupNumber})";
}
}