using Newtonsoft.Json; using RhythmBase.Components; using RhythmBase.Components.Easing; namespace RhythmBase.Events { /// /// Represents a move event in the rhythm base system. /// [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public class Move : BaseDecorationAction, IEaseEvent { /// /// Initializes a new instance of the class. /// public Move() { Type = EventType.Move; Tab = Tabs.Decorations; } /// /// Gets the type of the event. /// public override EventType Type { get; } /// /// Gets the tab associated with the event. /// public override Tabs Tab { get; } /// /// Gets or sets the position of the move event. /// [EaseProperty] public RDPointE? Position { get; set; } /// /// Gets or sets the scale of the move event. /// [EaseProperty] public RDSizeE? Scale { get; set; } /// /// Gets or sets the angle of the move event. /// [EaseProperty] public RDExpression? Angle { get; set; } /// /// Gets or sets the pivot point of the move event. /// [EaseProperty] public RDPointE? Pivot { get; set; } /// /// Gets or sets the duration of the move event. /// public float Duration { get; set; } /// /// Gets or sets the easing type of the move event. /// public EaseType Ease { get; set; } /// /// Returns a string that represents the current object. /// /// A string that represents the current object. public override string ToString() => base.ToString(); } }