Skip to main content

Interface IGameObject

Interface representing a game object.

Assembly: Dalamud.dll
View Source
Declaration
public interface IGameObject : IEquatable<IGameObject>

Properties

Name

Gets the name of this Dalamud.Game.ClientState.Objects.Types.GameObject.

View Source
Declaration
SeString Name { get; }

GameObjectId

Gets the GameObjectID for this GameObject. The Game Object ID is a globally unique identifier that points to this specific object. This ID is used to reference specific objects on the local client (e.g. for targeting).

Not to be confused with Dalamud.Game.ClientState.Objects.Types.IGameObject.EntityId.

View Source
Declaration
ulong GameObjectId { get; }

EntityId

Gets the Entity ID for this GameObject. Entity IDs are assigned to networked GameObjects.

A value of 0xE000_0000 indicates that this entity is not networked and has specific interactivity rules.

View Source
Declaration
uint EntityId { get; }

DataId

Gets the data ID for linking to other respective game data.

View Source
Declaration
uint DataId { get; }

OwnerId

Gets the ID of this GameObject's owner.

View Source
Declaration
uint OwnerId { get; }

ObjectIndex

Gets the index of this object in the object table.

View Source
Declaration
ushort ObjectIndex { get; }

ObjectKind

Gets the entity kind of this Dalamud.Game.ClientState.Objects.Types.GameObject. See Dalamud.Game.ClientState.Objects.Types.IGameObject.ObjectKind?text=the+ObjectKind+enum for possible values.

View Source
Declaration
ObjectKind ObjectKind { get; }

SubKind

Gets the sub kind of this Actor.

View Source
Declaration
byte SubKind { get; }

YalmDistanceX

Gets the X distance from the local player in yalms.

View Source
Declaration
byte YalmDistanceX { get; }

YalmDistanceZ

Gets the Y distance from the local player in yalms.

View Source
Declaration
byte YalmDistanceZ { get; }

IsDead

Gets a value indicating whether the object is dead or alive.

View Source
Declaration
bool IsDead { get; }

IsTargetable

Gets a value indicating whether the object is targetable.

View Source
Declaration
bool IsTargetable { get; }

Position

Gets the position of this Dalamud.Game.ClientState.Objects.Types.GameObject.

View Source
Declaration
Vector3 Position { get; }

Rotation

Gets the rotation of this Dalamud.Game.ClientState.Objects.Types.GameObject. This ranges from -pi to pi radians.

View Source
Declaration
float Rotation { get; }

HitboxRadius

Gets the hitbox radius of this Dalamud.Game.ClientState.Objects.Types.GameObject.

View Source
Declaration
float HitboxRadius { get; }

TargetObjectId

Gets the current target of the game object.

View Source
Declaration
ulong TargetObjectId { get; }

TargetObject

Gets the target object of the game object.

View Source
Declaration
IGameObject? TargetObject { get; }

Address

Gets the address of the game object in memory.

View Source
Declaration
nint Address { get; }

Methods

IsValid()

Gets a value indicating whether this actor is still valid in memory.

View Source
Declaration
bool IsValid()
Returns

System.Boolean: True or false.