From 41a62d7cd148cb4835f3da4032ed79aeba0bcc73 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Mon, 17 Jan 2022 04:54:35 +0100 Subject: [PATCH] feat(Character): add OnlineStatus excel resolver --- Dalamud/Game/ClientState/Objects/Types/Character.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/ClientState/Objects/Types/Character.cs b/Dalamud/Game/ClientState/Objects/Types/Character.cs index 61b136284..50a33ecaa 100644 --- a/Dalamud/Game/ClientState/Objects/Types/Character.cs +++ b/Dalamud/Game/ClientState/Objects/Types/Character.cs @@ -4,6 +4,7 @@ using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.ClientState.Resolvers; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Memory; +using Lumina.Excel.GeneratedSheets; namespace Dalamud.Game.ClientState.Objects.Types { @@ -65,7 +66,7 @@ namespace Dalamud.Game.ClientState.Objects.Types /// /// Gets the ClassJob of this Chara. /// - public ExcelResolver ClassJob => new(this.Struct->ClassJob); + public ExcelResolver ClassJob => new(this.Struct->ClassJob); /// /// Gets the level of this Chara. @@ -93,6 +94,11 @@ namespace Dalamud.Game.ClientState.Objects.Types /// public uint NameId => this.Struct->NameID; + /// + /// Gets the current online status of the character. + /// + public ExcelResolver OnlineStatus => new(this.Struct->Icon); + /// /// Gets the status flags. ///