feat: new actor table shenanigans

This commit is contained in:
goat 2020-04-24 18:50:20 +02:00
parent 03e4a4d25c
commit f80a4e7432
5 changed files with 26 additions and 52 deletions

View file

@ -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();
}