mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 12:27:43 +01:00
Revert obsolete as error again, fix warnings, Api14ToDo => Api15ToDo
Some checks are pending
Some checks are pending
This commit is contained in:
parent
19fca721e9
commit
c005bae265
8 changed files with 23 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue