Initial commit: AetherBags + KamiToolKit for FC Gitea
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-08 14:46:31 -05:00
commit 8db4ce6094
375 changed files with 34124 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using FFXIVClientStructs.FFXIV.Component.GUI;
using KamiToolKit.Classes;
namespace KamiToolKit.Timelines;
public unsafe class TimelineResource : IDisposable {
private readonly TimelineAnimationArray animationArray;
private readonly TimelineLabelSetArray labelsArray;
internal AtkTimelineResource* InternalResource;
public TimelineResource() {
InternalResource = NativeMemoryHelper.UiAlloc<AtkTimelineResource>();
InternalResource->Id = 2;
InternalResource->AnimationCount = 0;
InternalResource->LabelSetCount = 0;
animationArray = new TimelineAnimationArray();
InternalResource->Animations = animationArray.InternalTimelineArray;
labelsArray = new TimelineLabelSetArray();
InternalResource->LabelSets = labelsArray.InternalLabelSetArray;
}
public List<TimelineAnimation> Animations {
get => animationArray.Animations;
set {
animationArray.Animations = value;
InternalResource->Animations = animationArray.InternalTimelineArray;
InternalResource->AnimationCount = (ushort)animationArray.Count;
}
}
public List<TimelineLabelSet> LabelSets {
get => labelsArray.LabelSets;
set {
labelsArray.LabelSets = value;
InternalResource->LabelSets = labelsArray.InternalLabelSetArray;
InternalResource->LabelSetCount = (ushort)labelsArray.Count;
}
}
public int Id {
get => (int)InternalResource->Id;
set => InternalResource->Id = (uint)value;
}
public void Dispose() {
animationArray.Dispose();
labelsArray.Dispose();
NativeMemoryHelper.UiFree(InternalResource);
InternalResource = null;
}
}