mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Update Character.StatusFlags (#1214)
This commit is contained in:
parent
6b185156ab
commit
35a1319f07
2 changed files with 10 additions and 2 deletions
|
|
@ -102,7 +102,15 @@ public unsafe class Character : GameObject
|
|||
/// <summary>
|
||||
/// Gets the status flags.
|
||||
/// </summary>
|
||||
public StatusFlags StatusFlags => (StatusFlags)this.Struct->StatusFlags;
|
||||
public StatusFlags StatusFlags =>
|
||||
(this.Struct->IsHostile ? StatusFlags.Hostile : StatusFlags.None) |
|
||||
(this.Struct->InCombat ? StatusFlags.InCombat : StatusFlags.None) |
|
||||
(this.Struct->IsWeaponDrawn ? StatusFlags.WeaponOut : StatusFlags.None) |
|
||||
(this.Struct->IsOffhandDrawn ? StatusFlags.OffhandOut : StatusFlags.None) |
|
||||
(this.Struct->IsPartyMember ? StatusFlags.PartyMember : StatusFlags.None) |
|
||||
(this.Struct->IsAllianceMember ? StatusFlags.AllianceMember : StatusFlags.None) |
|
||||
(this.Struct->IsFriend ? StatusFlags.Friend : StatusFlags.None) |
|
||||
(this.Struct->IsCasting ? StatusFlags.IsCasting : StatusFlags.None);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the underlying structure.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit befdb399a3a579025b82d583fbe3bf84b2ececed
|
||||
Subproject commit ebec8bacf50aa082e99c955ec2d4a5ae61937174
|
||||
Loading…
Add table
Add a link
Reference in a new issue