Show / Hide Table of Contents

    Class MakeExchangeStateAction

    Performs a missing resources exchange by modifying ICurrency amounts based on the requested input and output CurrencyAmounts

    Inheritance
    Object
    EntityAction
    GoalAction
    ExchangeAction
    MakeExchangeStateAction
    Implements
    IStateAction
    Inherited Members
    GoalAction.Goal
    EntityAction._typesToDispatchAs
    EntityAction.TypesToDispatchAs
    EntityAction.Entity
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class MakeExchangeStateAction : ExchangeAction, IStateAction

    Constructors

    MakeExchangeStateAction()

    Declaration
    public MakeExchangeStateAction()

    Fields

    _currencyService

    Declaration
    protected ICurrencyService _currencyService
    Field Value
    Type Description
    ICurrencyService

    _inputAmount

    Declaration
    protected CurrencyAmount _inputAmount
    Field Value
    Type Description
    CurrencyAmount

    _outputAmount

    Declaration
    protected CurrencyAmount _outputAmount
    Field Value
    Type Description
    CurrencyAmount

    Properties

    InputAmount

    Declaration
    public override CurrencyAmount InputAmount { get; }
    Property Value
    Type Description
    CurrencyAmount
    Overrides
    ExchangeAction.InputAmount

    OutputAmount

    Declaration
    public override CurrencyAmount OutputAmount { get; }
    Property Value
    Type Description
    CurrencyAmount
    Overrides
    ExchangeAction.OutputAmount

    Methods

    Apply()

    Declaration
    public virtual void Apply()

    Initialize(CurrencyAmount, CurrencyAmount)

    Declaration
    public virtual void Initialize(CurrencyAmount input, CurrencyAmount output)
    Parameters
    Type Name Description
    CurrencyAmount input
    CurrencyAmount output

    Inject(IResolver)

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

    ResetAction()

    Declaration
    public override void ResetAction()
    Overrides
    ExchangeAction.ResetAction()

    Implements

    IStateAction
    Back to top Copyright © 2020 East Side Games Inc.