feat: add GameObject.ToString() override

This commit is contained in:
goat 2021-08-27 01:20:04 +02:00
parent 0ba2a573d9
commit 4b676686ef
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -162,5 +162,8 @@ namespace Dalamud.Game.ClientState.Objects.Types
/// Gets the underlying structure. /// Gets the underlying structure.
/// </summary> /// </summary>
private protected FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)this.Address; private protected FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)this.Address;
/// <inheritdoc/>
public override string ToString() => $"{this.ObjectId:X}({this.Name.TextValue} - {this.ObjectKind.ToString()}) at {this.Address:X}";
} }
} }