b598c03e9e
Reformats the entire Craftimizer source tree with dotnet csharpier 1.2.6 to match the Hellion Forge house style (matches what HellionChat enforces in its pre-push pipeline). Pure whitespace + using-block sorting; no semantic changes. This is a one-time noisy commit. Future code edits in this fork should land csharpier-clean because the pre-push hook (introduced in the next commit) runs `dotnet csharpier check Craftimizer/` as Block C of the preflight gate. Trade-off acknowledged: this widens the merge gap with upstream Craftimizer should Asriel ever resume maintenance. Given the upstream has been dormant since FFXIV 7.4 and the fork is light-rename only (internal namespaces unchanged), the marginal cost is acceptable.
79 lines
2.4 KiB
C#
79 lines
2.4 KiB
C#
using Craftimizer.Utils;
|
|
using Dalamud.Game;
|
|
using Dalamud.Game.ClientState.Objects;
|
|
using Dalamud.Interface.Windowing;
|
|
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
using Dalamud.Storage.Assets;
|
|
|
|
namespace Craftimizer.Plugin;
|
|
|
|
#pragma warning disable SeStringEvaluator
|
|
|
|
public sealed class Service
|
|
{
|
|
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
|
[PluginService]
|
|
public static IDalamudPluginInterface PluginInterface { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ICommandManager CommandManager { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IObjectTable Objects { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ISigScanner SigScanner { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IGameGui GameGui { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IClientState ClientState { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IDataManager DataManager { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ITextureProvider TextureProvider { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IDalamudAssetManager DalamudAssetManager { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ITargetManager TargetManager { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ICondition Condition { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IFramework Framework { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IPluginLog PluginLog { get; private set; }
|
|
|
|
[PluginService]
|
|
public static IGameInteropProvider GameInteropProvider { get; private set; }
|
|
|
|
[PluginService]
|
|
public static INotificationManager NotificationManager { get; private set; }
|
|
|
|
[PluginService]
|
|
public static ISeStringEvaluator SeStringEvaluator { get; private set; }
|
|
|
|
public static Plugin Plugin { get; private set; }
|
|
public static Configuration Configuration => Plugin.Configuration;
|
|
public static IconManager IconManager => Plugin.IconManager;
|
|
public static WindowSystem WindowSystem => Plugin.WindowSystem;
|
|
public static CommunityMacros CommunityMacros => Plugin.CommunityMacros;
|
|
public static Ipc Ipc => Plugin.Ipc;
|
|
#pragma warning restore CS8618
|
|
|
|
internal static void Initialize(Plugin plugin, IDalamudPluginInterface iface)
|
|
{
|
|
Plugin = plugin;
|
|
iface.Create<Service>();
|
|
}
|
|
}
|