Files
AetherBags/KamiToolKit/Timelines/TimelineKeyFrame.cs
T
KnackAtNite 8db4ce6094
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Initial commit: AetherBags + KamiToolKit for FC Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 14:46:31 -05:00

24 lines
850 B
C#

using FFXIVClientStructs.FFXIV.Component.GUI;
namespace KamiToolKit.Timelines;
public abstract class TimelineKeyFrame {
public KeyFrameGroupType GroupSelector { get; set; }
public AtkTimelineKeyGroupType GroupType { get; set; }
public float SpeedStart { get; set; } = 0.0f;
public float SpeedEnd { get; set; } = 1.0f;
public required int FrameIndex { get; set; }
public AtkTimelineInterpolation Interpolation { get; set; } = AtkTimelineInterpolation.Linear;
public AtkTimelineKeyValue Value { get; set; }
public static implicit operator AtkTimelineKeyFrame(TimelineKeyFrame frame) => new() {
Interpolation = frame.Interpolation,
SpeedCoefficient1 = frame.SpeedStart,
SpeedCoefficient2 = frame.SpeedEnd,
FrameIdx = (ushort)frame.FrameIndex,
Value = frame.Value,
};
}