mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-20 22:47:45 +01:00
Add legacy IPC.
This commit is contained in:
parent
e0447b1ed4
commit
e8096f6e00
4 changed files with 4 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ namespace Glamourer.Api;
|
|||
|
||||
public class GlamourerApi(DesignsApi designs, StateApi state, ItemsApi items) : IGlamourerApi, IApiService
|
||||
{
|
||||
public const int CurrentApiVersionMajor = 1;
|
||||
public const int CurrentApiVersionMajor = 2;
|
||||
public const int CurrentApiVersionMinor = 0;
|
||||
|
||||
public (int Major, int Minor) ApiVersion
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public sealed class IpcProviders : IDisposable, IApiService
|
|||
_providers =
|
||||
[
|
||||
new FuncProvider<(int Major, int Minor)>(pi, "Glamourer.ApiVersions", () => api.ApiVersion), // backward compatibility
|
||||
new FuncProvider<int>(pi, "Glamourer.ApiVersion", () => api.ApiVersion.Major), // backward compatibility
|
||||
IpcSubscribers.ApiVersion.Provider(pi, api),
|
||||
|
||||
IpcSubscribers.GetDesignList.Provider(pi, api.Designs),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue