Show / Hide Table of Contents

    Class IncrementGeneratorUnitStateAction

    Removes the increment generatorUnit cost from the player and increments the generatorUnit on the target Generator

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

    Constructors

    IncrementGeneratorUnitStateAction()

    Declaration
    public IncrementGeneratorUnitStateAction()

    Fields

    _costToIncrement

    Declaration
    protected double _costToIncrement
    Field Value
    Type Description
    Double

    _currencyService

    Declaration
    protected ICurrencyService _currencyService
    Field Value
    Type Description
    ICurrencyService

    _finalUnitTargetIndex

    Declaration
    protected int _finalUnitTargetIndex
    Field Value
    Type Description
    Int32

    _generatorEntity

    Declaration
    protected IGeneratorEntity _generatorEntity
    Field Value
    Type Description
    IGeneratorEntity

    _startingUnitTargetIndex

    Declaration
    protected int _startingUnitTargetIndex
    Field Value
    Type Description
    Int32

    _typesToDispatchAs

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

    _value

    Declaration
    protected int _value
    Field Value
    Type Description
    Int32

    Properties

    CostToIncrement

    Declaration
    public virtual double CostToIncrement { get; }
    Property Value
    Type Description
    Double

    FinalUnitTargetIndex

    Declaration
    public virtual int FinalUnitTargetIndex { get; }
    Property Value
    Type Description
    Int32

    GeneratorEntity

    Declaration
    public virtual IGeneratorEntity GeneratorEntity { get; }
    Property Value
    Type Description
    IGeneratorEntity

    StartingUnitTargetIndex

    Declaration
    public virtual int StartingUnitTargetIndex { get; }
    Property Value
    Type Description
    Int32

    TypesToDispatchAs

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

    Value

    Declaration
    public virtual int Value { get; }
    Property Value
    Type Description
    Int32

    Methods

    Apply()

    Declaration
    public virtual void Apply()

    Initialize(IGeneratorEntity, Int32)

    Declaration
    public virtual void Initialize(IGeneratorEntity generatorEntity, int value)
    Parameters
    Type Name Description
    IGeneratorEntity generatorEntity
    Int32 value

    Inject(IResolver)

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

    PayForIncrement()

    Declaration
    protected virtual void PayForIncrement()

    ResetAction()

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