Interface ICustomFlags<TKey>
Contains methods and properties which allow to work with flags.
public interface ICustomFlags<TKey> : IReadOnlyFlags<TKey>
Type Parameters
TKeyType of the flag identifier.
Properties
- this[TKey]
Calls HasFlag(TKey) and SetFlag(TKey, bool).
Methods
- AddFlag(TKey)
Adds flag with
id.
- RemoveFlag(TKey)
Removes flag with
id.
- SetFlag(TKey, bool)
Adds flag if
valueis true, removes flag if its false.
- ToggleFlag(TKey)
If flag with
idwas previously added, it is removed. And if there is no such flag, it is added.