mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 03:49:19 +01:00
Some changes to Actor Table handling
This commit is contained in:
parent
6b5f8e6bed
commit
75ed54117c
8 changed files with 46 additions and 30 deletions
|
|
@ -32,7 +32,7 @@ namespace Dalamud.Game.ClientState
|
|||
/// <summary>
|
||||
/// The local player character, if one is present.
|
||||
/// </summary>
|
||||
public PlayerCharacter LocalPlayer => (PlayerCharacter) this.Actors[0];
|
||||
public PlayerCharacter LocalPlayer { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The content ID of the local character.
|
||||
|
|
@ -62,6 +62,13 @@ namespace Dalamud.Game.ClientState
|
|||
this.Actors = new ActorTable(Address);
|
||||
|
||||
this.JobGauges = new JobGauges(Address);
|
||||
|
||||
dalamud.Framework.OnUpdateEvent += FrameworkOnOnUpdateEvent;
|
||||
}
|
||||
|
||||
private void FrameworkOnOnUpdateEvent(Framework framework) {
|
||||
LocalPlayer = (PlayerCharacter) this.Actors[0];
|
||||
Log.Verbose("FRAMEWORK UPDATE");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue