mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
- Should help clear up ambiguity with any external plugins intending to call ReapplyState on a mod-change to themselves, to know if Glamourer has it handled for them.
25 lines
672 B
C#
25 lines
672 B
C#
using Glamourer.Api.Api;
|
|
using OtterGui.Services;
|
|
|
|
namespace Glamourer.Api;
|
|
|
|
public class GlamourerApi(Configuration config, DesignsApi designs, StateApi state, ItemsApi items) : IGlamourerApi, IApiService
|
|
{
|
|
public const int CurrentApiVersionMajor = 1;
|
|
public const int CurrentApiVersionMinor = 6;
|
|
|
|
public (int Major, int Minor) ApiVersion
|
|
=> (CurrentApiVersionMajor, CurrentApiVersionMinor);
|
|
|
|
public bool AutoReloadGearEnabled
|
|
=> config.AutoRedrawEquipOnChanges;
|
|
|
|
public IGlamourerApiDesigns Designs
|
|
=> designs;
|
|
|
|
public IGlamourerApiItems Items
|
|
=> items;
|
|
|
|
public IGlamourerApiState State
|
|
=> state;
|
|
}
|