Show / Hide Table of Contents

    Interface IEconomyService

    Handles all formulas regarding the IGeneratorEntity with or without the influence of IModifiers

    Inherited Members
    IService.Initialize(Action<IService>)
    IService.Cleanup()
    Namespace: IdleKit.Framework
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IEconomyService : IService, IInjectable

    Methods

    GetAffordableUnitsToNextTarget(IGeneratorEntity, Boolean, IModifier[])

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IGeneratorEntity.GetAffordableUnitsToNextTarget(bool applyModifiers, IModifier[] excludedModifiers = null) instead.", true)]
    int GetAffordableUnitsToNextTarget(IGeneratorEntity generatorEntity, bool applyModifiers, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    IGeneratorEntity generatorEntity
    Boolean applyModifiers
    IModifier[] excludedModifiers
    Returns
    Type Description
    Int32

    GetAscensionPower(IStage, Boolean, Double, IModifier[])

    Returns the ascension power a player has for a specific stage. If applyModifiers is true, all IModifier that affect the value will be applied. Ascension power can only be affected by IModifier.

    Declaration
    double GetAscensionPower(IStage stage, bool applyModifiers = true, double ascensionPower = 1, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    IStage stage
    Boolean applyModifiers
    Double ascensionPower
    IModifier[] excludedModifiers
    Returns
    Type Description
    Double
    Examples
    IUpgradeableCurrency IStage

    GetDuration(IBaseCollectorEntity)

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IBaseCollectorEntity.GetDuration() instead.", true)]
    long GetDuration(IBaseCollectorEntity baseCollectorEntity)
    Parameters
    Type Name Description
    IBaseCollectorEntity baseCollectorEntity
    Returns
    Type Description
    Int64

    GetDuration(IBaseCollectorEntity, Boolean, IModifier[])

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IBaseCollectorEntity.GetDuration(bool applyModifiers, IModifier[] excludedModifiers = null) instead.", true)]
    long GetDuration(IBaseCollectorEntity baseCollectorEntity, bool applyModifiers, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    IBaseCollectorEntity baseCollectorEntity
    Boolean applyModifiers
    IModifier[] excludedModifiers
    Returns
    Type Description
    Int64

    GetIncrementGeneratorUnitCost(Int32, IGeneratorEntity, Boolean, IModifier[])

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IGeneratorEntity.GetIncrementGeneratorUnitCost(int unitsToIncrease, bool applyModifiers, IModifier[] excludedModifiers = null) instead.", true)]
    double GetIncrementGeneratorUnitCost(int unitsToIncrease, IGeneratorEntity generatorEntity, bool applyModifiers, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    Int32 unitsToIncrease
    IGeneratorEntity generatorEntity
    Boolean applyModifiers
    IModifier[] excludedModifiers
    Returns
    Type Description
    Double

    GetMaxAffordableUnits(IGeneratorEntity, Boolean, Int32, IModifier[])

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IGeneratorEntity.GetMaxAffordableUnits(bool applyModifiers, int maxCap = -1, IModifier[] excludedModifiers = null) instead.", true)]
    int GetMaxAffordableUnits(IGeneratorEntity generatorEntity, bool applyModifiers, int maxCap = -1, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    IGeneratorEntity generatorEntity
    Boolean applyModifiers
    Int32 maxCap
    IModifier[] excludedModifiers
    Returns
    Type Description
    Int32

    GetPayout(IBaseCollectorEntity)

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IBaseCollectorEntity.GetPayout() instead.", true)]
    double GetPayout(IBaseCollectorEntity baseCollectorEntity)
    Parameters
    Type Name Description
    IBaseCollectorEntity baseCollectorEntity
    Returns
    Type Description
    Double

    GetPayout(IBaseCollectorEntity, Boolean, IModifier[])

    Declaration
    [Obsolete("Deprecated in version 1.3. Use IBaseCollectorEntity.GetPayout(bool applyModifiers, IModifier[] excludedModifiers = null) instead.", true)]
    double GetPayout(IBaseCollectorEntity baseCollectorEntity, bool applyModifiers, IModifier[] excludedModifiers = null)
    Parameters
    Type Name Description
    IBaseCollectorEntity baseCollectorEntity
    Boolean applyModifiers
    IModifier[] excludedModifiers
    Returns
    Type Description
    Double
    Back to top Copyright © 2020 East Side Games Inc.