mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-16 12:57:44 +01:00
24 lines
707 B
C#
24 lines
707 B
C#
using System.Threading;
|
|
|
|
namespace Dalamud.Plugin.Services;
|
|
|
|
/// <summary>
|
|
/// Class offering cancellation tokens for common gameplay events.
|
|
/// </summary>
|
|
public interface IGameLifecycle : IDalamudService
|
|
{
|
|
/// <summary>
|
|
/// Gets a token that is cancelled when Dalamud is unloading.
|
|
/// </summary>
|
|
public CancellationToken DalamudUnloadingToken { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a token that is cancelled when the game is shutting down.
|
|
/// </summary>
|
|
public CancellationToken GameShuttingDownToken { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a token that is cancelled when a character is logging out.
|
|
/// </summary>
|
|
public CancellationToken LogoutToken { get; }
|
|
}
|