using Newtonsoft.Json; using RhythmBase.Components; namespace RhythmBase.Events { /// /// Represents an event to set the room content mode. /// public class SetRoomContentMode : BaseEvent { /// /// Initializes a new instance of the class. /// public SetRoomContentMode() { Type = EventType.SetRoomContentMode; Tab = Tabs.Rooms; } /// /// Gets or sets the mode of the room content. /// public Modes Mode { 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; } /// /// Gets the room associated with the event. /// [JsonIgnore] public RDRoom Room { get { return new RDSingleRoom(checked((byte)Y)); } } /// /// Defines the modes for room content. /// public enum Modes { #pragma warning disable CS1591 Center, ScaleToFill, AspectFit, AspectFill, Tiled, Real #pragma warning restore CS1591 } } }