mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 17:09:17 +01:00
fix: uint->ulong for some object ids
This commit is contained in:
parent
873a845157
commit
d2f7589cb3
5 changed files with 5 additions and 5 deletions
|
|
@ -60,7 +60,7 @@ public sealed partial class ObjectTable : IServiceType
|
|||
/// </summary>
|
||||
/// <param name="objectId">Object ID to find.</param>
|
||||
/// <returns>A game object or null.</returns>
|
||||
public GameObject? SearchById(uint objectId)
|
||||
public GameObject? SearchById(ulong objectId)
|
||||
{
|
||||
if (objectId is GameObject.InvalidGameObjectId or 0)
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -25,5 +25,5 @@ public unsafe class BattleNpc : BattleChara
|
|||
public BattleNpcSubKind BattleNpcKind => (BattleNpcSubKind)this.Struct->Character.GameObject.SubKind;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override uint TargetObjectId => this.Struct->Character.TargetObjectID;
|
||||
public override ulong TargetObjectId => this.Struct->Character.TargetObjectID;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,5 +33,5 @@ public unsafe class PlayerCharacter : BattleChara
|
|||
/// <summary>
|
||||
/// Gets the target actor ID of the PlayerCharacter.
|
||||
/// </summary>
|
||||
public override uint TargetObjectId => this.Struct->Character.PlayerTargetObjectID;
|
||||
public override ulong TargetObjectId => this.Struct->Character.PlayerTargetObjectID;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public unsafe class Character : GameObject
|
|||
/// <summary>
|
||||
/// Gets the target object ID of the character.
|
||||
/// </summary>
|
||||
public override uint TargetObjectId => this.Struct->TargetObjectID;
|
||||
public override ulong TargetObjectId => this.Struct->TargetObjectID;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name ID of the character.
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public unsafe partial class GameObject
|
|||
/// <summary>
|
||||
/// Gets the current target of the game object.
|
||||
/// </summary>
|
||||
public virtual uint TargetObjectId => 0;
|
||||
public virtual ulong TargetObjectId => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the target object of the game object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue