mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
feat: add OnLogin and OnLogout events to ClientState
This commit is contained in:
parent
e4b59a1777
commit
283eb49f17
2 changed files with 42 additions and 1 deletions
|
|
@ -38,5 +38,24 @@ namespace Dalamud.Game.ClientState
|
|||
return *( bool* )( this.conditionArrayBase + idx );
|
||||
}
|
||||
}
|
||||
|
||||
public bool Any() {
|
||||
var didAny = false;
|
||||
|
||||
for (var i = 0; i < MaxConditionEntries; i++)
|
||||
{
|
||||
var typedCondition = (ConditionFlag)i;
|
||||
var cond = this[typedCondition];
|
||||
|
||||
if (!cond)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
didAny = true;
|
||||
}
|
||||
|
||||
return didAny;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue