Show / Hide Table of Contents

    Interface IGeneratorUnitTargetSequence

    Contains a sequential collection of IGeneratorUnitTargetDatas that are progressed through as the player buys IGeneratorEntity units.

    Inherited Members
    IEntity.Id
    IEntity.Initialize()
    IEntity.Cleanup(IEntityLoaderService)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IGeneratorUnitTargetSequence : IEntity, IInjectable

    Properties

    GeneratorUnitTargets

    A list of all IGeneratorUnitTargetData referenced in the GeneratorUnitTargetSequenceData.

    Declaration
    IGeneratorUnitTargetData[] GeneratorUnitTargets { get; }
    Property Value
    Type Description
    IGeneratorUnitTargetData[]

    GeneratorUnitTargetSequenceData

    Associated IEntityData.

    Declaration
    IGeneratorUnitTargetSequenceData GeneratorUnitTargetSequenceData { get; }
    Property Value
    Type Description
    IGeneratorUnitTargetSequenceData

    Methods

    GetGeneratorUnitTarget(Int32)

    Returns the IGeneratorUnitTargetData at the index targetIndex.

    Declaration
    IGeneratorUnitTargetData GetGeneratorUnitTarget(int targetIndex)
    Parameters
    Type Name Description
    Int32 targetIndex
    Returns
    Type Description
    IGeneratorUnitTargetData

    GetGeneratorUnitTargetAmount(Int32)

    Returns the number of generator units it wil take to reach targetIndex in GeneratorUnitTargets.

    Declaration
    int GetGeneratorUnitTargetAmount(int targetIndex)
    Parameters
    Type Name Description
    Int32 targetIndex
    Returns
    Type Description
    Int32

    GetGeneratorUnitTargetIndex(Int32)

    Uses your IGeneratorEntity's current units to determine which GeneratorUnitTargets index its on.

    Declaration
    int GetGeneratorUnitTargetIndex(int units)
    Parameters
    Type Name Description
    Int32 units

    The number of generator units to compare to the sequence's GeneratorUnitAmount.

    Returns
    Type Description
    Int32

    GetProgression(Int32)

    Returns the percentage progression that the player has towards the next target based on the current .

    Declaration
    float GetProgression(int units)
    Parameters
    Type Name Description
    Int32 units

    The current number of generator units the player has.

    Returns
    Type Description
    Single
    Back to top Copyright © 2020 East Side Games Inc.