Add IsDead boolean property to Dalamud.Game.ClientState.Objects.Types.Character

This commit is contained in:
Dragon 2022-11-14 12:02:58 +02:00
parent a49e9eb5c5
commit 0264b1b7d7

View file

@ -99,6 +99,11 @@ public unsafe class Character : GameObject
/// </summary>
public ExcelResolver<OnlineStatus> OnlineStatus => new(this.Struct->OnlineStatus);
/// <summary>
/// Gets a value indicating whether the character is dead or alive.
/// </summary>
public bool IsDead => this.Struct->EventState == 2;
/// <summary>
/// Gets the status flags.
/// </summary>