chore: make all services with interfaces internal

This commit is contained in:
goat 2023-09-17 21:09:00 +02:00
parent ab9b7e1602
commit 5809cf5d7c
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
40 changed files with 67 additions and 86 deletions

View file

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@ -7,6 +6,7 @@ using CheapLoc;
using Dalamud.Game;
using Dalamud.Game.Command;
using Dalamud.Game.Gui;
using Dalamud.Plugin.Services;
using Dalamud.Utility;
using Serilog;
@ -78,7 +78,7 @@ internal class ProfileCommandHandler : IServiceType, IDisposable
this.framework.Update += this.FrameworkOnUpdate;
}
private void FrameworkOnUpdate(Framework framework1)
private void FrameworkOnUpdate(IFramework framework1)
{
if (this.profileManager.IsBusy)
return;

View file

@ -15,18 +15,13 @@ public interface IFramework
/// A delegate type used with the <see cref="Update"/> event.
/// </summary>
/// <param name="framework">The Framework instance.</param>
public delegate void OnUpdateDelegate(Framework framework);
public delegate void OnUpdateDelegate(IFramework framework);
/// <summary>
/// Event that gets fired every time the game framework updates.
/// </summary>
public event OnUpdateDelegate Update;
/// <summary>
/// Gets a raw pointer to the instance of Client::Framework.
/// </summary>
public FrameworkAddressResolver Address { get; }
/// <summary>
/// Gets the last time that the Framework Update event was triggered.
/// </summary>