feat(Character): add OnlineStatus excel resolver

This commit is contained in:
goaaats 2022-01-17 04:54:35 +01:00
parent 7a0f514bc9
commit 41a62d7cd1
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -4,6 +4,7 @@ using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Game.ClientState.Resolvers; using Dalamud.Game.ClientState.Resolvers;
using Dalamud.Game.Text.SeStringHandling; using Dalamud.Game.Text.SeStringHandling;
using Dalamud.Memory; using Dalamud.Memory;
using Lumina.Excel.GeneratedSheets;
namespace Dalamud.Game.ClientState.Objects.Types namespace Dalamud.Game.ClientState.Objects.Types
{ {
@ -65,7 +66,7 @@ namespace Dalamud.Game.ClientState.Objects.Types
/// <summary> /// <summary>
/// Gets the ClassJob of this Chara. /// Gets the ClassJob of this Chara.
/// </summary> /// </summary>
public ExcelResolver<Lumina.Excel.GeneratedSheets.ClassJob> ClassJob => new(this.Struct->ClassJob); public ExcelResolver<ClassJob> ClassJob => new(this.Struct->ClassJob);
/// <summary> /// <summary>
/// Gets the level of this Chara. /// Gets the level of this Chara.
@ -93,6 +94,11 @@ namespace Dalamud.Game.ClientState.Objects.Types
/// </summary> /// </summary>
public uint NameId => this.Struct->NameID; public uint NameId => this.Struct->NameID;
/// <summary>
/// Gets the current online status of the character.
/// </summary>
public ExcelResolver<OnlineStatus> OnlineStatus => new(this.Struct->Icon);
/// <summary> /// <summary>
/// Gets the status flags. /// Gets the status flags.
/// </summary> /// </summary>