Add PluginInterface attribute to PlayerState

This commit is contained in:
Haselnussbomber 2025-10-05 14:36:55 +02:00
parent 4422622e1e
commit 8cac486249
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -1,4 +1,5 @@
using Dalamud.Data;
using Dalamud.IoC;
using Dalamud.IoC.Internal;
using Dalamud.Plugin.Services;
@ -15,9 +16,10 @@ namespace Dalamud.Game.PlayerState;
/// <summary>
/// This class contains the PlayerState wrappers.
/// </summary>
[PluginInterface]
[ServiceManager.EarlyLoadedService]
[ResolveVia<IPlayerState>]
internal unsafe class PlayerState : IPlayerState, IServiceType
internal unsafe class PlayerState : IServiceType, IPlayerState
{
/// <inheritdoc/>
public bool IsLoaded => CSPlayerState.Instance()->IsLoaded;