• Manual
  • Scripting API
  • Changelog
  • License
Show / Hide Table of Contents
  • AlchemyBow.Core
    • CoreController<TProjectContext>
    • CoreProjectContext
    • ICoreLoadable
    • ICoreLoadingCallbacksHandler
    • LoadablesProgress
    • OperationHandle
  • AlchemyBow.Core.Editor.Utilities
    • CoreEditorUtility
    • IndentStringBuilder
  • AlchemyBow.Core.Editor.Windows
    • CoreManagementWindow
  • AlchemyBow.Core.Editor.Wizards
    • CoreControllerScriptWizard
    • CoreProjectContextPrefabWizard
    • CoreProjectContextScriptWizard
    • CoreQuickStartWizard
    • ValidationMessageList
    • WizardValidationUtility
    • WizardWindow
  • AlchemyBow.Core.Extras.Behaviours
    • CoreBehaviour
    • CoreBehaviourEnablingStrategy
  • AlchemyBow.Core.Extras.FluentBindings
    • ContainerFluentExtensions
    • FluentBinding
  • AlchemyBow.Core.Extras.Installers
    • ChildrenCompositeMonoInstaller
    • UnityObjectMonoInstaller
  • AlchemyBow.Core.IoC
    • Container
    • DynamicCollectionBindingUtility
    • DynamicInjector<T>
    • IBindOnlyContainer
    • InjectAttribute
    • InjectionTargetAttribute
    • MonoInstaller
  • AlchemyBow.Core.IoC.Elements
    • DynamicInjectorBase
    • InjectionInfo
    • ReflectionFieldsSetter
  • AlchemyBow.Core.States
    • ICondition
    • IState
    • StateGraph
    • StateGraphComposer
  • AlchemyBow.Core.States.Elements
    • StateGraphLink
  • AlchemyBow.Core.States.Prototyping
    • PrototypeCondition
    • PrototypeState

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

true if met; Otherwise, false.

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 true activates the conditions; otherwise, deactivates it.

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.

In this article
Back to top Copyright © 2022-2024 AlchemyBow | Generated by DocFX