fix: uint->ulong for some object ids

This commit is contained in:
NotNite 2023-01-10 20:04:31 -05:00
parent 873a845157
commit d2f7589cb3
No known key found for this signature in database
GPG key ID: BD91A5402CCEB08A
5 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

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

View file

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

View file

@ -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.

View file

@ -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.