mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
76 lines
2.1 KiB
C#
76 lines
2.1 KiB
C#
using System;
|
|
|
|
using Dalamud.Game.ClientState.Objects.SubKinds;
|
|
|
|
namespace Dalamud.Plugin.Services;
|
|
|
|
/// <summary>
|
|
/// This class represents the state of the game client at the time of access.
|
|
/// </summary>
|
|
public interface IClientState
|
|
{
|
|
/// <summary>
|
|
/// Event that gets fired when the current Territory changes.
|
|
/// </summary>
|
|
public event EventHandler<ushort> TerritoryChanged;
|
|
|
|
/// <summary>
|
|
/// Event that fires when a character is logging in, and the local character object is available.
|
|
/// </summary>
|
|
public event EventHandler Login;
|
|
|
|
/// <summary>
|
|
/// Event that fires when a character is logging out.
|
|
/// </summary>
|
|
public event EventHandler Logout;
|
|
|
|
/// <summary>
|
|
/// Event that fires when a character is entering PvP.
|
|
/// </summary>
|
|
public event Action EnterPvP;
|
|
|
|
/// <summary>
|
|
/// Event that fires when a character is leaving PvP.
|
|
/// </summary>
|
|
public event Action LeavePvP;
|
|
|
|
/// <summary>
|
|
/// Event that gets fired when a duty is ready.
|
|
/// </summary>
|
|
public event EventHandler<Lumina.Excel.GeneratedSheets.ContentFinderCondition> CfPop;
|
|
|
|
/// <summary>
|
|
/// Gets the language of the client.
|
|
/// </summary>
|
|
public ClientLanguage ClientLanguage { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the current Territory the player resides in.
|
|
/// </summary>
|
|
public ushort TerritoryType { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the local player character, if one is present.
|
|
/// </summary>
|
|
public PlayerCharacter? LocalPlayer { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the content ID of the local character.
|
|
/// </summary>
|
|
public ulong LocalContentId { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether a character is logged in.
|
|
/// </summary>
|
|
public bool IsLoggedIn { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether or not the user is playing PvP.
|
|
/// </summary>
|
|
public bool IsPvP { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether or not the user is playing PvP, excluding the Wolves' Den.
|
|
/// </summary>
|
|
public bool IsPvPExcludingDen { get; }
|
|
}
|