mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
add ICondition.Only() to check for a set of flags
This commit is contained in:
parent
a12edcbae0
commit
bc0bea03e0
2 changed files with 27 additions and 0 deletions
|
|
@ -51,4 +51,12 @@ public interface ICondition
|
|||
/// <returns>Whether any single provided flag is set.</returns>
|
||||
/// <param name="flags">The condition flags to check.</param>
|
||||
public bool Any(params ConditionFlag[] flags);
|
||||
|
||||
/// <summary>
|
||||
/// Check if none but the provided condition flags are set.
|
||||
/// This is not an exclusive check, it will return true if the provided flags are the only ones set.
|
||||
/// </summary>
|
||||
/// <param name="flags">The condition flags to check for.</param>
|
||||
/// <returns>Whether only flags passed in are set.</returns>
|
||||
public bool Only(params ConditionFlag[] flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue