Interface IGameObject
Interface representing a game object.
Assembly: Dalamud.dll
View Source
public interface IGameObject : IEquatable<IGameObject>
Properties
Name
Gets the name of this Dalamud.Game.ClientState.Objects.Types.GameObject
.
View Source
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
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
uint EntityId { get; }
DataId
Gets the data ID for linking to other respective game data.
View Source
uint DataId { get; }
OwnerId
Gets the ID of this GameObject's owner.
View Source
uint OwnerId { get; }
ObjectIndex
Gets the index of this object in the object table.
View Source
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
ObjectKind ObjectKind { get; }
SubKind
Gets the sub kind of this Actor.
View Source
byte SubKind { get; }
YalmDistanceX
Gets the X distance from the local player in yalms.
View Source
byte YalmDistanceX { get; }
YalmDistanceZ
Gets the Y distance from the local player in yalms.
View Source
byte YalmDistanceZ { get; }
IsDead
Gets a value indicating whether the object is dead or alive.
View Source
bool IsDead { get; }
IsTargetable
Gets a value indicating whether the object is targetable.
View Source
bool IsTargetable { get; }
Position
Gets the position of this Dalamud.Game.ClientState.Objects.Types.GameObject
.
View Source
Vector3 Position { get; }
Rotation
Gets the rotation of this Dalamud.Game.ClientState.Objects.Types.GameObject
.
This ranges from -pi to pi radians.
View Source
float Rotation { get; }
HitboxRadius
Gets the hitbox radius of this Dalamud.Game.ClientState.Objects.Types.GameObject
.
View Source
float HitboxRadius { get; }
TargetObjectId
Gets the current target of the game object.
View Source
ulong TargetObjectId { get; }
TargetObject
Gets the target object of the game object.
View Source
IGameObject? TargetObject { get; }
Address
Gets the address of the game object in memory.
View Source
nint Address { get; }
Methods
IsValid()
Gets a value indicating whether this actor is still valid in memory.
View Source
bool IsValid()
Returns
System.Boolean
: True or false.