Show / Hide Table of Contents

    Class Goal<TGoalData>

    An abstract IGoal base type that provides much of the common functionality used by concrete Goal implementations.

    The target is specified by the derived implementations of Goal<TGoalData>. The target amount is specified via the implementation of Amount. The progress of the Goal<TGoalData> is set each time ProgressGoal(Double) or SetProgressGoal(Double) is called from the derived implementations.

    Inheritance
    Object
    Goal<TGoalData>
    AutomateGeneratorsGoal
    AutomateGeneratorTypeGoal
    BuyGeneratorTypeGoal
    CollectFromCollectorTypeGoal
    CollectFromGeneratorTypeGoal
    CollectGoal<TGoalData>
    CollectRewardTypeGoal
    GetGeneratorUnitsForAllGeneratorsGoal
    GetGeneratorUnitsForGeneratorsGoal
    GetGeneratorUnitsForGeneratorTypeGoal
    GetTotalGeneratorUnitsGoal
    HitGeneratorUnitTargetsGoal
    MakeTradeGoal<TGoalData>
    UpgradeGoal<TGoalData>
    Implements
    IGoal
    IActivatable
    IEntity
    IInjectable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class Goal<TGoalData> : IGoal, IActivatable, IEntity, IInjectable where TGoalData : class, IGoalData
    Type Parameters
    Name Description
    TGoalData

    Constructors

    Goal(String)

    Declaration
    protected Goal(string id)
    Parameters
    Type Name Description
    String id

    Fields

    _actionService

    Declaration
    protected IActionService _actionService
    Field Value
    Type Description
    IActionService

    _dataService

    Declaration
    protected IDataService _dataService
    Field Value
    Type Description
    IDataService

    _entityResolver

    Declaration
    protected IEntityResolver _entityResolver
    Field Value
    Type Description
    IEntityResolver

    _goalData

    Declaration
    protected TGoalData _goalData
    Field Value
    Type Description
    TGoalData

    _goalSavedData

    Declaration
    protected IGoalSavedData _goalSavedData
    Field Value
    Type Description
    IGoalSavedData

    _id

    Declaration
    protected readonly string _id
    Field Value
    Type Description
    String

    _targets

    Declaration
    protected HashSet<IEntity> _targets
    Field Value
    Type Description
    HashSet<IEntity>

    Properties

    ActivatableData

    Declaration
    public virtual IActivatableData ActivatableData { get; }
    Property Value
    Type Description
    IActivatableData

    CanClaim

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

    CurrentProgression

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

    GoalData

    Declaration
    public virtual IGoalData GoalData { get; }
    Property Value
    Type Description
    IGoalData

    GoalSavedData

    Declaration
    public virtual IGoalSavedData GoalSavedData { get; }
    Property Value
    Type Description
    IGoalSavedData

    Id

    Declaration
    public virtual string Id { get; }
    Property Value
    Type Description
    String

    IsActive

    Declaration
    public virtual bool IsActive { get; }
    Property Value
    Type Description
    Boolean

    NormalizedProgress

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

    TargetProgression

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

    Methods

    Activate()

    Declaration
    public virtual void Activate()

    Cleanup(IEntityLoaderService)

    Declaration
    public virtual void Cleanup(IEntityLoaderService entityLoaderService)
    Parameters
    Type Name Description
    IEntityLoaderService entityLoaderService

    CleanupSubscriptions()

    Declaration
    protected virtual void CleanupSubscriptions()

    Deactivate()

    Declaration
    public virtual void Deactivate()

    Initialize()

    Declaration
    public virtual void Initialize()

    Inject(IResolver)

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

    ProgressGoal(Double)

    Declaration
    protected virtual void ProgressGoal(double progression)
    Parameters
    Type Name Description
    Double progression

    Reset()

    Declaration
    public virtual void Reset()

    SendGoalActivatedAction()

    Declaration
    protected virtual void SendGoalActivatedAction()

    SetProgressGoal(Double)

    Declaration
    protected virtual void SetProgressGoal(double progression)
    Parameters
    Type Name Description
    Double progression

    SubscribeActionListener(IEntity)

    Declaration
    protected abstract void SubscribeActionListener(IEntity target)
    Parameters
    Type Name Description
    IEntity target

    UnsubscribeActionListener(IEntity)

    Declaration
    protected abstract void UnsubscribeActionListener(IEntity target)
    Parameters
    Type Name Description
    IEntity target

    Implements

    IGoal
    IActivatable
    IEntity
    IInjectable
    Back to top Copyright © 2020 East Side Games Inc.