Update ClientStructs

- Fix build errors caused by obsoletes
This commit is contained in:
Kaz Wolfe 2023-09-16 18:00:08 -07:00
parent 3e613cffd0
commit 85bb5229d9
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
4 changed files with 6 additions and 11 deletions

View file

@ -1,5 +1,3 @@
using System;
using Dalamud.Game.ClientState.Objects.Enums;
namespace Dalamud.Game.ClientState.Objects.Types;
@ -25,5 +23,5 @@ public unsafe class BattleNpc : BattleChara
public BattleNpcSubKind BattleNpcKind => (BattleNpcSubKind)this.Struct->Character.GameObject.SubKind;
/// <inheritdoc/>
public override ulong TargetObjectId => this.Struct->Character.TargetObjectID;
public override ulong TargetObjectId => this.Struct->Character.TargetId;
}

View file

@ -1,5 +1,3 @@
using System;
using Dalamud.Game.ClientState.Objects.Types;
using Dalamud.Game.ClientState.Resolvers;
@ -33,5 +31,5 @@ public unsafe class PlayerCharacter : BattleChara
/// <summary>
/// Gets the target actor ID of the PlayerCharacter.
/// </summary>
public override ulong TargetObjectId => this.Struct->Character.PlayerTargetObjectID;
public override ulong TargetObjectId => this.Struct->Character.LookTargetId;
}

View file

@ -1,5 +1,3 @@
using System;
using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Game.ClientState.Resolvers;
using Dalamud.Game.Text.SeStringHandling;
@ -87,7 +85,7 @@ public unsafe class Character : GameObject
/// <summary>
/// Gets the target object ID of the character.
/// </summary>
public override ulong TargetObjectId => this.Struct->TargetObjectID;
public override ulong TargetObjectId => this.Struct->TargetId;
/// <summary>
/// Gets the name ID of the character.
@ -115,5 +113,6 @@ public unsafe class Character : GameObject
/// <summary>
/// Gets the underlying structure.
/// </summary>
protected internal new FFXIVClientStructs.FFXIV.Client.Game.Character.Character* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Character.Character*)this.Address;
protected internal new FFXIVClientStructs.FFXIV.Client.Game.Character.Character* Struct =>
(FFXIVClientStructs.FFXIV.Client.Game.Character.Character*)this.Address;
}

@ -1 +1 @@
Subproject commit 7279a8f3ca6b79490184b05532af509781a89415
Subproject commit 06e3ca2336031ba86ef95d022a2af722e5d00a7e