Archived
forked from RDTKEditor/RDTKEditor
添加对 Core 的直接引用
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json;
|
||||
using RhythmBase.Components;
|
||||
using RhythmBase.Components.Easing;
|
||||
namespace RhythmBase.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an event that fades a room.
|
||||
/// </summary>
|
||||
public class FadeRoom : BaseEvent, IEaseEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FadeRoom"/> class.
|
||||
/// </summary>
|
||||
public FadeRoom() { }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the easing type for the fade effect.
|
||||
/// </summary>
|
||||
public EaseType Ease { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the opacity level for the fade effect.
|
||||
/// </summary>
|
||||
[EaseProperty]
|
||||
public uint Opacity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the duration of the fade effect.
|
||||
/// </summary>
|
||||
public float Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the event.
|
||||
/// </summary>
|
||||
public override EventType Type { get; } = EventType.FadeRoom;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the tab associated with the event.
|
||||
/// </summary>
|
||||
public override Tabs Tab { get; } = Tabs.Rooms;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the room associated with the event.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public RDRoom Room => new RDSingleRoom((byte)Y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user