some adjustments for API9
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Pilz.Dalamud.ActivityContexts
|
|||||||
PluginServices.ClientState.TerritoryChanged -= ClientState_TerritoryChanged;
|
PluginServices.ClientState.TerritoryChanged -= ClientState_TerritoryChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClientState_TerritoryChanged(object? sender, ushort e)
|
private void ClientState_TerritoryChanged(ushort obj)
|
||||||
{
|
{
|
||||||
CheckCurrentTerritory();
|
CheckCurrentTerritory();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ using System.Threading.Tasks;
|
|||||||
using Pilz.Dalamud.Nameplates.Model;
|
using Pilz.Dalamud.Nameplates.Model;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.GeneratedSheets;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
|
||||||
namespace Pilz.Dalamud.Nameplates
|
namespace Pilz.Dalamud.Nameplates
|
||||||
{
|
{
|
||||||
@@ -52,7 +53,7 @@ namespace Pilz.Dalamud.Nameplates
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public NameplateHooks()
|
public NameplateHooks()
|
||||||
{
|
{
|
||||||
SignatureHelper.Initialise(this);
|
PluginServices.GameInteropProvider.InitializeFromAttributes(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
~NameplateHooks()
|
~NameplateHooks()
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using Dalamud.Game.ClientState.Objects;
|
|||||||
using Dalamud.Game.Gui;
|
using Dalamud.Game.Gui;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -14,11 +15,12 @@ namespace Pilz.Dalamud
|
|||||||
{
|
{
|
||||||
public class PluginServices
|
public class PluginServices
|
||||||
{
|
{
|
||||||
[PluginService] public static GameGui GameGui { get; set; } = null;
|
|
||||||
[PluginService] public static DalamudPluginInterface PluginInterface { get; set; } = null;
|
[PluginService] public static DalamudPluginInterface PluginInterface { get; set; } = null;
|
||||||
[PluginService] public static ClientState ClientState { get; set; } = null;
|
[PluginService] public static IGameGui GameGui { get; set; } = null;
|
||||||
[PluginService] public static DataManager DataManager { get; set; } = null;
|
[PluginService] public static IClientState ClientState { get; set; } = null;
|
||||||
[PluginService] public static ObjectTable ObjectTable { get; set; } = null;
|
[PluginService] public static IDataManager DataManager { get; set; } = null;
|
||||||
|
[PluginService] public static IObjectTable ObjectTable { get; set; } = null;
|
||||||
|
[PluginService] public static IGameInteropProvider GameInteropProvider { get; set; } = null;
|
||||||
|
|
||||||
public static void Initialize(DalamudPluginInterface dalamudPluginInterface)
|
public static void Initialize(DalamudPluginInterface dalamudPluginInterface)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user