using RhythmBase.Components; namespace RhythmBase.Events { /// /// Represents an event that shakes the screen. /// public class ShakeScreen : BaseEvent, IRoomEvent { /// /// Initializes a new instance of the class. /// public ShakeScreen() { Rooms = new RDRoom(true, new byte[1]); Type = EventType.ShakeScreen; Tab = Tabs.Actions; } /// /// Gets or sets the rooms associated with the event. /// public RDRoom Rooms { get; set; } /// /// Gets or sets the shake level of the event. /// public ShakeLevels ShakeLevel { 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}", ShakeLevel); /// /// Defines the levels of screen shake. /// public enum ShakeLevels { /// /// Low level of screen shake. /// Low, /// /// Medium level of screen shake. /// Medium, /// /// High level of screen shake. /// High } } }