mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Rename DataId to BaseId
This commit is contained in:
parent
29c4d4939f
commit
ea0fcbd713
3 changed files with 28 additions and 1 deletions
|
|
@ -19,8 +19,14 @@ public interface IBuddyMember
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the object ID of this buddy.
|
/// Gets the object ID of this buddy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Renamed to EntityId")]
|
||||||
uint ObjectId { get; }
|
uint ObjectId { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the entity ID of this buddy.
|
||||||
|
/// </summary>
|
||||||
|
uint EntityId { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the actor associated with this buddy.
|
/// Gets the actor associated with this buddy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -83,6 +89,9 @@ internal unsafe class BuddyMember : IBuddyMember
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public uint ObjectId => this.Struct->EntityId;
|
public uint ObjectId => this.Struct->EntityId;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public uint EntityId => this.Struct->EntityId;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IGameObject? GameObject => this.objectTable.SearchById(this.ObjectId);
|
public IGameObject? GameObject => this.objectTable.SearchById(this.ObjectId);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,14 @@ public interface IGameObject : IEquatable<IGameObject>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the data ID for linking to other respective game data.
|
/// Gets the data ID for linking to other respective game data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Renamed to BaseId")]
|
||||||
public uint DataId { get; }
|
public uint DataId { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the base ID for linking to other respective game data.
|
||||||
|
/// </summary>
|
||||||
|
public uint BaseId { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the ID of this GameObject's owner.
|
/// Gets the ID of this GameObject's owner.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -208,6 +214,9 @@ internal unsafe partial class GameObject : IGameObject
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public uint DataId => this.Struct->BaseId;
|
public uint DataId => this.Struct->BaseId;
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public uint BaseId => this.Struct->BaseId;
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public uint OwnerId => this.Struct->OwnerId;
|
public uint OwnerId => this.Struct->OwnerId;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,14 @@ public interface IPartyMember
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the actor ID of this party member.
|
/// Gets the actor ID of this party member.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("Renamed to EntityId")]
|
||||||
uint ObjectId { get; }
|
uint ObjectId { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the entity ID of this party member.
|
||||||
|
/// </summary>
|
||||||
|
uint EntityId { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the actor associated with this buddy.
|
/// Gets the actor associated with this buddy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -140,13 +146,16 @@ internal unsafe class PartyMember : IPartyMember
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint ObjectId => this.Struct->EntityId;
|
public uint ObjectId => this.Struct->EntityId;
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public uint EntityId => this.Struct->EntityId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the actor associated with this buddy.
|
/// Gets the actor associated with this buddy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This iterates the actor table, it should be used with care.
|
/// This iterates the actor table, it should be used with care.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public IGameObject? GameObject => Service<ObjectTable>.Get().SearchById(this.ObjectId);
|
public IGameObject? GameObject => Service<ObjectTable>.Get().SearchById(this.EntityId);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the current HP of this party member.
|
/// Gets the current HP of this party member.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue