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 |
---|---|
System.Boolean |
|
SetActive(Boolean)
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 |
---|---|---|
System.Boolean | 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 |
---|---|
System.Action |
Remarks
In most cases, it should be raised when the condition is met.