Add PenumbraAPI & GlamourerAPI + Update API & Connector

This commit is contained in:
2025-08-31 18:19:04 +02:00
parent bc6cde48de
commit 6101686a33
143 changed files with 15731 additions and 1337 deletions

View File

@@ -0,0 +1,43 @@
using Dalamud.Plugin;
using Penumbra.Api.Enums;
using Penumbra.Api.Helpers;
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
namespace Penumbra.Api.IpcSubscribers.Legacy;
public sealed class GetDrawObjectInfo(IDalamudPluginInterface pi)
: FuncSubscriber<nint, (nint, string)>(pi, Label)
{
public const string Label = $"Penumbra.{nameof(GetDrawObjectInfo)}";
public new (nint GameObjectAddress, string CollectionName) Invoke(nint drawObjectAddress)
=> base.Invoke(drawObjectAddress);
}
public sealed class SetCutsceneParentIndex(IDalamudPluginInterface pi)
: FuncSubscriber<int, int, PenumbraApiEc>(pi, Label)
{
public const string Label = $"Penumbra.{nameof(SetCutsceneParentIndex)}";
public new PenumbraApiEc Invoke(int cutsceneObjectIndex, int newParentIndex)
=> base.Invoke(cutsceneObjectIndex, newParentIndex);
}
public static class CreatingCharacterBase
{
public const string Label = $"Penumbra.{nameof(CreatingCharacterBase)}";
public static EventSubscriber<nint, string, nint, nint, nint> Subscriber(IDalamudPluginInterface pi,
params Action<nint, string, nint, nint, nint>[] actions)
=> new(pi, Label, actions);
}
public static class CreatedCharacterBase
{
public const string Label = $"Penumbra.{nameof(CreatedCharacterBase)}";
public static EventSubscriber<nint, string, nint> Subscriber(IDalamudPluginInterface pi,
params Action<nint, string, nint>[] actions)
=> new(pi, Label, actions);
}