DP-VoidBox/VoidBox/Service.cs

54 lines
1.4 KiB
C#
Raw Permalink Normal View History

2024-03-02 01:31:18 +01:00
using Dalamud.Game.Text;
using Dalamud.IoC;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using Dalamud.Storage;
2024-03-02 01:31:18 +01:00
namespace VoidBox;
public sealed class Service
{
public static Plugin Plugin { get; internal set; } = null!;
public static Configuration Config { get; internal set; } = null!;
public static PluginUI PluginUI { get; internal set; } = null!;
public static EnvCollection Envs { get; internal set; } = null!;
2024-03-02 01:31:18 +01:00
[PluginService]
2024-07-15 23:53:09 +02:00
public static IDalamudPluginInterface PluginInterface { get; private set; } = null!;
2024-03-02 01:31:18 +01:00
[PluginService]
public static ICommandManager CommandManager { get; private set; } = null!;
[PluginService]
public static IFramework Framework { get; private set; } = null!;
[PluginService]
public static IClientState ClientState { get; private set; } = null!;
[PluginService]
public static IGameInteropProvider GameInteropProvider { get; private set; } = null!;
[PluginService]
public static IPluginLog PluginLog { get; private set; } = null!;
[PluginService]
public static IChatGui ChatGui { get; private set; } = null!;
public static void PrintChat(string msg)
{
ChatGui.Print(new XivChatEntry
{
Message = msg,
Type = PluginInterface.GeneralChatType
});
}
public static void PrintChatErr(string msg)
{
ChatGui.PrintError(msg);
}
}