Files
SnowcloakClient/Penumbra.Api/Delegates.cs

43 lines
2.4 KiB
C#
Raw Normal View History

2025-08-22 02:19:48 +01:00
using Penumbra.Api.Enums;
namespace Penumbra.Api;
/// <summary>Used when a game object is redrawn by Penumbra.</summary>
/// <returns>The <paramref name="objectPtr" /> to the redrawn object and its <paramref name="objectTableIndex" />.</returns>
public delegate void GameObjectRedrawnDelegate(nint objectPtr, int objectTableIndex);
/// <summary>
/// Used when the setting of a mod is changed in any way.
/// </summary>
/// <returns>The <paramref name="type" /> of change, <para />
/// the <paramref name="collectionId" /> in which the setting is changed, <para />
/// the <paramref name="modDirectory" /> name of the mod, <para />
/// and whether the change was <paramref name="inherited" /> or not.</returns>
public delegate void ModSettingChangedDelegate(ModSettingChange type, Guid collectionId, string modDirectory, bool inherited);
/// <summary>
/// Used before a new character base draw object is created from a <paramref name="gameObject" />.
/// </summary>
/// <returns>A pointer to the source <paramref name="gameObject" />, <para />
/// the <paramref name="collectionId" /> used for the object, <para />
/// a pointer to the used <paramref name="modelId" /> (of type <c>ushort*</c>), <para />
/// a pointer to the <paramref name="customize" /> array, <para />
/// and a pointer to the <paramref name="equipData" /> array.</returns>
public delegate void CreatingCharacterBaseDelegate(nint gameObject, Guid collectionId, nint modelId, nint customize, nint equipData);
/// <summary>
/// Used after a character base <paramref name="drawObject" /> has been created from a <paramref name="gameObject" />.
/// </summary>
/// <returns>A pointer to the source <paramref name="gameObject" />, <para />
/// the <paramref name="collectionId" /> used for the object, <para />
/// a pointer to newly created <paramref name="drawObject" />.</returns>
public delegate void CreatedCharacterBaseDelegate(nint gameObject, Guid collectionId, nint drawObject);
/// <summary>
/// Used when a specific game object has resolved a path to a non-default path.
/// </summary>
/// <returns>A pointer to the source <paramref name="gameObject" />, <para />
/// the original <paramref name="gamePath" /> that was resolved by Penumbra, <para />
/// the resulting <paramref name="localPath" /> returned by Penumbra.</returns>
public delegate void GameObjectResourceResolvedDelegate(nint gameObject, string gamePath, string localPath);