mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
feat: new actor table shenanigans
This commit is contained in:
parent
03e4a4d25c
commit
f80a4e7432
5 changed files with 26 additions and 52 deletions
|
|
@ -6,6 +6,7 @@ using Dalamud.Game.ClientState.Actors.Types;
|
|||
using Dalamud.Game.Internal;
|
||||
using Dalamud.Game.Internal.Network;
|
||||
using Dalamud.Hooking;
|
||||
using JetBrains.Annotations;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Serilog;
|
||||
|
||||
|
|
@ -29,6 +30,7 @@ namespace Dalamud.Game.ClientState
|
|||
/// <summary>
|
||||
/// The local player character, if one is present.
|
||||
/// </summary>
|
||||
[CanBeNull]
|
||||
public PlayerCharacter LocalPlayer {
|
||||
get {
|
||||
var actor = this.Actors[0];
|
||||
|
|
@ -122,13 +124,11 @@ namespace Dalamud.Game.ClientState
|
|||
}
|
||||
|
||||
public void Enable() {
|
||||
this.Actors.Enable();
|
||||
this.PartyList.Enable();
|
||||
this.setupTerritoryTypeHook.Enable();
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
this.Actors.Dispose();
|
||||
this.PartyList.Dispose();
|
||||
this.setupTerritoryTypeHook.Dispose();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue