Move property to GameObject and call the virtual function instead

This commit is contained in:
Dragon 2022-11-14 12:52:52 +02:00
parent 0264b1b7d7
commit de91215003
2 changed files with 5 additions and 5 deletions

View file

@ -99,11 +99,6 @@ 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>

View file

@ -134,6 +134,11 @@ public unsafe partial class GameObject
/// </summary>
public byte YalmDistanceZ => this.Struct->YalmDistanceFromPlayerZ;
/// <summary>
/// Gets a value indicating whether the object is dead or alive.
/// </summary>
public bool IsDead => this.Struct->IsDead();
/// <summary>
/// Gets the position of this <see cref="GameObject" />.
/// </summary>