51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
|
using Dalamud.Game.Text;
|
|||
|
using Dalamud.IoC;
|
|||
|
using Dalamud.Plugin;
|
|||
|
using Dalamud.Plugin.Services;
|
|||
|
|
|||
|
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!;
|
|||
|
|
|||
|
[PluginService]
|
|||
|
public static DalamudPluginInterface 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);
|
|||
|
}
|
|||
|
}
|