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,26 @@
namespace Penumbra.Api.Api;
/// <summary> API methods pertaining to Penumbras own state. </summary>
public interface IPenumbraApiPluginState
{
/// <returns> The full path of the current penumbra root directory. </returns>
public string GetModDirectory();
/// <returns> The entire current penumbra configuration as a json encoded string. </returns>
public string GetConfiguration();
/// <summary>
/// Fired whenever a mod directory change is finished.
/// </summary>
/// <returns>The full path of the mod directory and whether Penumbra treats it as valid.</returns>
public event Action<string, bool>? ModDirectoryChanged;
/// <returns>True if Penumbra is enabled, false otherwise.</returns>
public bool GetEnabledState();
/// <summary>
/// Fired whenever the enabled state of Penumbra changes.
/// </summary>
/// <returns>True if the new state is enabled, false if the new state is disabled</returns>
public event Action<bool>? EnabledChange;
}