Archived
forked from RDTKEditor/RDTKEditor
添加对 Core 的直接引用
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
using RhythmBase.Components;
|
||||
using RhythmBase.Components.Easing;
|
||||
namespace RhythmBase.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an event to set the foreground in a room.
|
||||
/// </summary>
|
||||
public class SetForeground : BaseEvent, IEaseEvent, IRoomEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SetForeground"/> class.
|
||||
/// </summary>
|
||||
public SetForeground()
|
||||
{
|
||||
Rooms = new RDRoom(false, new byte[1]);
|
||||
Color = new PaletteColor(true);
|
||||
Type = EventType.SetForeground;
|
||||
Tab = Tabs.Actions;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the rooms associated with the event.
|
||||
/// </summary>
|
||||
public RDRoom Rooms { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the content mode for the event.
|
||||
/// </summary>
|
||||
public ContentModes ContentMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tiling type for the event.
|
||||
/// </summary>
|
||||
public TilingTypes TilingType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color for the foreground.
|
||||
/// </summary>
|
||||
[EaseProperty]
|
||||
public PaletteColor Color { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the list of images for the foreground.
|
||||
/// </summary>
|
||||
public List<string> Image { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the frames per second for the foreground animation.
|
||||
/// </summary>
|
||||
public float Fps { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the horizontal scroll value.
|
||||
/// </summary>
|
||||
[EaseProperty]
|
||||
public float ScrollX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the vertical scroll value.
|
||||
/// </summary>
|
||||
[EaseProperty]
|
||||
public float ScrollY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the duration of the event.
|
||||
/// </summary>
|
||||
public float Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the interval between frames.
|
||||
/// </summary>
|
||||
public float Interval { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the easing type for the event.
|
||||
/// </summary>
|
||||
public EaseType Ease { 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>
|
||||
/// Returns a string that represents the current object.
|
||||
/// </summary>
|
||||
/// <returns>A string that represents the current object.</returns>
|
||||
public override string ToString() => base.ToString() + $" {Color},{string.Join(',', Image.Select(i => i.ToString()))}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user