mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #1094 from AsgardXIV/gameobjectx
This commit is contained in:
commit
e7eb4f433b
3 changed files with 14 additions and 0 deletions
|
|
@ -79,4 +79,9 @@ public enum ObjectKind : byte
|
|||
/// Objects representing card stand objects.
|
||||
/// </summary>
|
||||
CardStand = 0x0E,
|
||||
|
||||
/// <summary>
|
||||
/// Objects representing ornament (Fashion Accessories) objects.
|
||||
/// </summary>
|
||||
Ornament = 0x0F,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,8 +111,12 @@ public sealed partial class ObjectTable : IServiceType
|
|||
{
|
||||
ObjectKind.Player => new PlayerCharacter(address),
|
||||
ObjectKind.BattleNpc => new BattleNpc(address),
|
||||
ObjectKind.EventNpc => new Npc(address),
|
||||
ObjectKind.Retainer => new Npc(address),
|
||||
ObjectKind.EventObj => new EventObj(address),
|
||||
ObjectKind.Companion => new Npc(address),
|
||||
ObjectKind.MountType => new Npc(address),
|
||||
ObjectKind.Ornament => new Npc(address),
|
||||
_ => new GameObject(address),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,11 @@ public unsafe partial class GameObject
|
|||
/// </summary>
|
||||
public uint OwnerId => this.Struct->OwnerID;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of this object in the object table.
|
||||
/// </summary>
|
||||
public ushort ObjectIndex => this.Struct->ObjectIndex;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the entity kind of this <see cref="GameObject" />.
|
||||
/// See <see cref="ObjectKind">the ObjectKind enum</see> for possible values.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue