Show / Hide Table of Contents

    Class ProjectionService

    Inheritance
    Object
    ProjectionService
    Implements
    IProjectionService
    IService
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public class ProjectionService : ServiceBase, IProjectionService, IService

    Fields

    _entityResolver

    Declaration
    protected IEntityResolver _entityResolver
    Field Value
    Type Description
    IEntityResolver

    _payoutProjections

    Declaration
    protected IPayoutProjection[] _payoutProjections
    Field Value
    Type Description
    IPayoutProjection[]

    _projectionCalculator

    Declaration
    protected IProjectionCalculator _projectionCalculator
    Field Value
    Type Description
    IProjectionCalculator

    _timerService

    Declaration
    protected ITimerService _timerService
    Field Value
    Type Description
    ITimerService

    Methods

    CalculatePayoutProjections()

    Declaration
    protected virtual IPayoutProjection[] CalculatePayoutProjections()
    Returns
    Type Description
    IPayoutProjection[]

    CleanupService()

    Declaration
    protected override void CleanupService()

    GeneratePayoutDict(IGeneratorEntity[], IModifier[])

    Declaration
    protected virtual Dictionary<string, double> GeneratePayoutDict(IGeneratorEntity[] qualifiedGenerators, IModifier[] excludedModifiers)
    Parameters
    Type Name Description
    IGeneratorEntity[] qualifiedGenerators
    IModifier[] excludedModifiers
    Returns
    Type Description
    Dictionary<String, Double>

    GetPayoutProjections(Boolean)

    Declaration
    public virtual IPayoutProjection[] GetPayoutProjections(bool refreshPayout = false)
    Parameters
    Type Name Description
    Boolean refreshPayout
    Returns
    Type Description
    IPayoutProjection[]

    GetPayoutRate(IGeneratorEntity[], IModifier[])

    Declaration
    protected virtual CurrencyAmount[] GetPayoutRate(IGeneratorEntity[] qualifiedGenerators, IModifier[] excludedModifiers)
    Parameters
    Type Name Description
    IGeneratorEntity[] qualifiedGenerators
    IModifier[] excludedModifiers
    Returns
    Type Description
    CurrencyAmount[]

    GetProjectedEarnings(ICurrency, Int64, Boolean)

    Declaration
    public virtual CurrencyAmount GetProjectedEarnings(ICurrency targetCurrency, long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    ICurrency targetCurrency
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount

    GetProjectedEarnings(ICurrency, Int64, Int64, Boolean)

    Declaration
    public virtual CurrencyAmount GetProjectedEarnings(ICurrency targetCurrency, long startTime, long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    ICurrency targetCurrency
    Int64 startTime
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount

    GetProjectedEarnings(ICurrency[], Int64, Boolean)

    Declaration
    public virtual CurrencyAmount[] GetProjectedEarnings(ICurrency[] targetCurrencies, long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    ICurrency[] targetCurrencies
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount[]

    GetProjectedEarnings(ICurrency[], Int64, Int64, Boolean)

    Declaration
    public virtual CurrencyAmount[] GetProjectedEarnings(ICurrency[] targetCurrencies, long startTime, long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    ICurrency[] targetCurrencies
    Int64 startTime
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount[]

    GetProjectedEarnings(Int64, Boolean)

    Declaration
    public virtual CurrencyAmount[] GetProjectedEarnings(long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount[]

    GetProjectedEarnings(Int64, Int64, Boolean)

    Declaration
    public virtual CurrencyAmount[] GetProjectedEarnings(long startTime, long endTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    Int64 startTime
    Int64 endTime
    Boolean refreshPayout
    Returns
    Type Description
    CurrencyAmount[]

    GetTimesToTargetAmounts(CurrencyAmount[], Boolean)

    Declaration
    public virtual long[] GetTimesToTargetAmounts(CurrencyAmount[] targetAmounts, bool refreshPayout = false)
    Parameters
    Type Name Description
    CurrencyAmount[] targetAmounts
    Boolean refreshPayout
    Returns
    Type Description
    Int64[]

    GetTimesToTargetAmounts(CurrencyAmount[], Int64, Boolean)

    Declaration
    public virtual long[] GetTimesToTargetAmounts(CurrencyAmount[] targetAmounts, long startTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    CurrencyAmount[] targetAmounts
    Int64 startTime
    Boolean refreshPayout
    Returns
    Type Description
    Int64[]

    GetTimeToTargetAmount(CurrencyAmount, Boolean)

    Declaration
    public virtual long GetTimeToTargetAmount(CurrencyAmount targetAmount, bool refreshPayout = false)
    Parameters
    Type Name Description
    CurrencyAmount targetAmount
    Boolean refreshPayout
    Returns
    Type Description
    Int64

    GetTimeToTargetAmount(CurrencyAmount, Int64, Boolean)

    Declaration
    public virtual long GetTimeToTargetAmount(CurrencyAmount targetAmount, long startTime, bool refreshPayout = false)
    Parameters
    Type Name Description
    CurrencyAmount targetAmount
    Int64 startTime
    Boolean refreshPayout
    Returns
    Type Description
    Int64

    InitializeService()

    Declaration
    protected override void InitializeService()

    Inject(IResolver)

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

    RefreshPayoutProjections()

    Declaration
    public virtual void RefreshPayoutProjections()

    Implements

    IProjectionService
    IService
    Back to top Copyright © 2020 East Side Games Inc.