Archived
forked from RDTKEditor/RDTKEditor
添加对 Core 的直接引用
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user