using Newtonsoft.Json; namespace RhythmBase.Events { /// /// Represents an event to set the play style. /// public class SetPlayStyle : BaseEvent { /// /// Initializes a new instance of the class. /// public SetPlayStyle() { Type = EventType.SetPlayStyle; Tab = Tabs.Actions; } /// /// Gets or sets the play style. /// [JsonProperty(nameof(PlayStyle))] public PlayStyles PlayStyle { get; set; } /// /// Gets or sets the next bar. /// [JsonProperty(nameof(NextBar))] public int NextBar { get; set; } /// /// Gets or sets a value indicating whether the play style is relative. /// [JsonProperty(nameof(Relative))] public bool Relative { 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; } /// /// Defines the play styles. /// public enum PlayStyles { /// /// Normal play style. /// Normal, /// /// Loop play style. /// Loop, /// /// Prolong play style. /// Prolong, /// /// Immediate play style. /// Immediately, /// /// Extra immediate play style. /// ExtraImmediately, /// /// Prolong one bar play style. /// ProlongOneBar } } }