using RhythmBase.Components;
namespace RhythmBase.Events
{
///
/// Represents a Flash event in the rhythm base.
///
public class Flash : BaseEvent
{
///
/// Initializes a new instance of the class.
///
public Flash()
{
Rooms = new RDRoom(true, new byte[1]);
Type = EventType.Flash;
Tab = Tabs.Actions;
}
///
/// Gets or sets the rooms associated with the flash event.
///
public RDRoom Rooms { get; set; }
///
/// Gets or sets the duration of the flash event.
///
public Durations Duration { get; set; }
///
/// Gets the type of the event.
///
public override EventType Type { get; }
///
/// Gets the tab associated with the event.
///
public override Tabs Tab { get; }
///
/// Returns a string that represents the current object.
///
/// A string that represents the current object.
public override string ToString() => base.ToString() + string.Format(" {0}", Duration);
///
/// Specifies the possible durations for a flash event.
///
public enum Durations
{
///
/// A short duration.
///
Short,
///
/// A medium duration.
///
Medium,
///
/// A long duration.
///
Long
}
}
}