Show / Hide Table of Contents

    Class ToggleAvailableStateAction

    Set the target Unlockable's availability. Once the IUnlockable becomes available it then can be considered for rewards like RandomObtainedCurrencyReward and RandomUnobtainedCurrencyReward.

    Inheritance
    Object
    ToggleAvailableStateAction
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class ToggleAvailableStateAction : IStateAction

    Constructors

    ToggleAvailableStateAction()

    Declaration
    public ToggleAvailableStateAction()

    Fields

    _isAvailable

    Declaration
    protected bool _isAvailable
    Field Value
    Type Description
    Boolean

    _typesToDispatchAs

    Declaration
    protected Type[] _typesToDispatchAs
    Field Value
    Type Description
    Type[]

    _unlockable

    Declaration
    protected IUnlockable _unlockable
    Field Value
    Type Description
    IUnlockable

    Properties

    IsAvailable

    Declaration
    public virtual bool IsAvailable { get; }
    Property Value
    Type Description
    Boolean

    TypesToDispatchAs

    Declaration
    public virtual Type[] TypesToDispatchAs { get; }
    Property Value
    Type Description
    Type[]

    Unlockable

    Declaration
    public virtual IUnlockable Unlockable { get; }
    Property Value
    Type Description
    IUnlockable

    Methods

    Apply()

    Declaration
    public virtual void Apply()

    Initialize(IUnlockable, Boolean)

    Declaration
    public virtual void Initialize(IUnlockable unlockableItem, bool available)
    Parameters
    Type Name Description
    IUnlockable unlockableItem
    Boolean available

    Inject(IResolver)

    Declaration
    public virtual void Inject(IResolver resolver)
    Parameters
    Type Name Description
    IResolver resolver

    ResetAction()

    Declaration
    public virtual void ResetAction()
    Back to top Copyright © 2020 East Side Games Inc.