Interface ICondition
Provides the base interface for the abstraction of conditions.
Namespace: AlchemyBow.Core.States
Assembly: AlchemyBow.Core.dll
Syntax
public interface ICondition
Methods
CheckCondition()
Determines whether the condition is met.
Declaration
bool CheckCondition()
Returns
| Type | Description |
|---|---|
| bool |
|
SetActive(bool)
Activates/Deactivates the conditions. An active condition should track its status and raise the Triggered event when met.
Declaration
void SetActive(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | When |
Remarks
This method can be used to reset the internal state of a condition between uses.
Events
Triggered
An event that is raised when the condition should be checked.
Declaration
event Action Triggered
Event Type
| Type | Description |
|---|---|
| Action |
Remarks
In most cases, it should be raised when the condition is met.