54 lines
1.4 KiB
C#
54 lines
1.4 KiB
C#
using Dalamud.Game.Text;
|
|
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
using Dalamud.Storage;
|
|
|
|
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!;
|
|
|
|
[PluginService]
|
|
public static IDalamudPluginInterface PluginInterface { get; private set; } = null!;
|
|
|
|
[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);
|
|
}
|
|
}
|