This repository has been archived on 2025-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RDTKEditor/RhythmBaseCore/Events/SetRoomContentMode.cs
T

62 lines
1.2 KiB
C#

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