添加对 Core 的直接引用

This commit is contained in:
OLDREDSTONE
2025-03-25 15:49:57 +08:00
parent 24907abedb
commit 06c19bf10a
296 changed files with 24961 additions and 2 deletions
@@ -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
}
}
}