Revert obsolete as error again, fix warnings, Api14ToDo => Api15ToDo
Some checks are pending
Build Dalamud / Build on Windows (push) Waiting to run
Build Dalamud / Check API Compatibility (push) Blocked by required conditions
Build Dalamud / Deploy dalamud-distrib staging (push) Blocked by required conditions
Tag Build / Tag Build (push) Successful in 4s

This commit is contained in:
goaaats 2025-12-18 21:00:07 +01:00
parent 19fca721e9
commit c005bae265
8 changed files with 23 additions and 29 deletions

View file

@ -149,16 +149,27 @@ internal class CallGateChannel
return (TRet)result;
}
/// <summary>
/// Set the context for the invocations through this channel.
/// </summary>
/// <param name="ipcContext">The context to set.</param>
internal void SetInvocationContext(IpcContext ipcContext)
{
this.ipcExecutionContext.Value = ipcContext;
}
/// <summary>
/// Get the context for invocations through this channel.
/// </summary>
/// <returns>The context, if one was set.</returns>
internal IpcContext? GetInvocationContext()
{
return this.ipcExecutionContext.IsValueCreated ? this.ipcExecutionContext.Value : null;
}
/// <summary>
/// Clear the context for this channel.
/// </summary>
internal void ClearInvocationContext()
{
this.ipcExecutionContext.Value = null;

View file

@ -2,6 +2,7 @@ using Dalamud.Game;
using Dalamud.Game.ClientState;
using Dalamud.Game.ClientState.Conditions;
using Dalamud.Game.ClientState.Objects.SubKinds;
using Dalamud.Utility;
namespace Dalamud.Plugin.Services;
@ -109,13 +110,15 @@ public interface IClientState : IDalamudService
/// <summary>
/// Gets the local player character, if one is present.
/// </summary>
[Obsolete($"Use {nameof(IPlayerState)} or {nameof(IObjectTable)}.{nameof(IObjectTable.LocalPlayer)} if necessary.", true)]
[Api15ToDo("Remove")]
[Obsolete($"Use {nameof(IPlayerState)} or {nameof(IObjectTable)}.{nameof(IObjectTable.LocalPlayer)} if necessary.")]
public IPlayerCharacter? LocalPlayer { get; }
/// <summary>
/// Gets the content ID of the local character.
/// </summary>
[Obsolete($"Use {nameof(IPlayerState)}.{nameof(IPlayerState.ContentId)}", true)]
[Api15ToDo("Remove")]
[Obsolete($"Use {nameof(IPlayerState)}.{nameof(IPlayerState.ContentId)}")]
public ulong LocalContentId { get; }
/// <summary>