Interface IObjectTable
This collection represents the currently spawned FFXIV game objects.
Assembly: Dalamud.dll
View Source
Declaration
public interface IObjectTable : IEnumerable<IGameObject>, IEnumerable
Properties
Address
Gets the address of the object table.
View Source
Declaration
nint Address { get; }
Length
Gets the length of the object table.
View Source
Declaration
int Length { get; }
this[int]
Get an object at the specified spawn index.
View Source
Declaration
IGameObject? this[int index] { get; }
Methods
SearchById(ulong)
Search for a game object by their Object ID.
View Source
Declaration
IGameObject? SearchById(ulong gameObjectId)
Returns
Dalamud.Game.ClientState.Objects.Types.IGameObject: A game object or null.
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | gameObjectId | Object ID to find. |
SearchByEntityId(uint)
Search for a game object by the Entity ID.
View Source
Declaration
IGameObject? SearchByEntityId(uint entityId)
Returns
Dalamud.Game.ClientState.Objects.Types.IGameObject: A game object or null.
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | entityId | Entity ID to find. |
GetObjectAddress(int)
Gets the address of the game object at the specified index of the object table.
View Source
Declaration
nint GetObjectAddress(int index)
Returns
System.IntPtr
: The memory address of the object.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the object. |
CreateObjectReference(nint)
Create a reference to an FFXIV game object.
View Source
Declaration
IGameObject? CreateObjectReference(nint address)
Returns
Dalamud.Game.ClientState.Objects.Types.IGameObject: Dalamud.Game.ClientState.Objects.Types.GameObject
object or inheritor containing the requested data.
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | address | The address of the object in memory. |