Show / Hide Table of Contents

    Interface IGoalSavedData

    The ISavedData for ActiveGoals. There will be one pre active IGoal.

    Inherited Members
    ISavedData.TimeCreated
    ISavedData.TimeModified
    ISavedData.Load()
    ISavedData.Save()
    ISavedData.Delete()
    ISavedData.Reset()
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IGoalSavedData : ISavedData, IInjectable

    Properties

    CanClaim

    If the IGoal can be claimed.

    Declaration
    bool CanClaim { get; }
    Property Value
    Type Description
    Boolean

    Claimed

    If the IGoal has been claimed.

    Declaration
    bool Claimed { get; }
    Property Value
    Type Description
    Boolean

    NormalizedProgress

    Returns the normalized current progression between [0,1]. Returns 1 if the TargetProgression is not setup.

    Declaration
    double NormalizedProgress { get; }
    Property Value
    Type Description
    Double

    Progression

    The current progressed amount towards this IGoal's end.

    Declaration
    double Progression { get; }
    Property Value
    Type Description
    Double

    TargetProgression

    This is the target that Progression tries to reach to complete the IGoal.

    If the target to reach for a IGoal is not deterministic, an IGoal can serialize a generated amount here.

    See IDynamicGoal.

    Declaration
    double TargetProgression { get; }
    Property Value
    Type Description
    Double

    Methods

    Ascend()

    Called when the user ascend an IStage

    Declaration
    void Ascend()

    Claim()

    Called when the IGoal is claimed.

    Declaration
    void Claim()

    Progress(Double)

    Increase the current Progression by value

    Declaration
    void Progress(double value)
    Parameters
    Type Name Description
    Double value

    SetProgression(Double)

    Hard set the current Progression by value

    Declaration
    void SetProgression(double value)
    Parameters
    Type Name Description
    Double value

    SetTargetProgression(Double)

    Set the target of the IGoal

    Declaration
    void SetTargetProgression(double targetProgression)
    Parameters
    Type Name Description
    Double targetProgression
    Back to top Copyright © 2020 East Side Games Inc.