mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
add support for checking client conditions
This commit is contained in:
parent
e6512d5f48
commit
c6d46f9aea
7 changed files with 587 additions and 3 deletions
|
|
@ -92,6 +92,11 @@ namespace Dalamud.Game.ClientState
|
|||
/// </summary>
|
||||
public KeyState KeyState;
|
||||
|
||||
/// <summary>
|
||||
/// Provides access to client conditions/player state. Allows you to check if a player is in a duty, mounted, etc.
|
||||
/// </summary>
|
||||
public Condition Condition;
|
||||
|
||||
/// <summary>
|
||||
/// Set up client state access.
|
||||
/// </summary>
|
||||
|
|
@ -114,6 +119,8 @@ namespace Dalamud.Game.ClientState
|
|||
|
||||
this.KeyState = new KeyState(Address, scanner.Module.BaseAddress);
|
||||
|
||||
this.Condition = new Condition( Address );
|
||||
|
||||
Log.Verbose("SetupTerritoryType address {SetupTerritoryType}", Address.SetupTerritoryType);
|
||||
|
||||
this.setupTerritoryTypeHook = new Hook<SetupTerritoryTypeDelegate>(Address.SetupTerritoryType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue