Class GetGeneratorUnitsForGeneratorTypeGoal
A IGoal that is complete when the player buys a specified number of units for
one or more instances of a specified IGeneratorEntity.
Any IGeneratorEntity with a Id
that matches the Id specified via
GeneratorId will be targeted by the
IGoal.
The IGoal progresses by 1 whenever a targeted IGeneratorEntity
reaches the target number of units specified via Amount. For example,
a IGoal could be authored that requires the player to get a specific
IGeneratorEntity to 100 units/customers.
IGeneratorEntity units that have been accumulated before the IGoal
becomes active will count towards the target. Any IGeneratorEntity purchased by
the player after the IGoal becomes active will also still be eligible for
contribution toward the target.
Inheritance
GetGeneratorUnitsForGeneratorTypeGoal
Assembly: cs.temp.dll.dll
Syntax
public class GetGeneratorUnitsForGeneratorTypeGoal : Goal<GetGeneratorUnitsForGeneratorTypeGoalData>, IGoal, IActivatable, IEntity, IInjectable
Constructors
GetGeneratorUnitsForGeneratorTypeGoal(String)
Declaration
public GetGeneratorUnitsForGeneratorTypeGoal(string id)
Parameters
Type |
Name |
Description |
String |
id |
|
Fields
_mostUnitsGenerator
Declaration
protected IGeneratorEntity _mostUnitsGenerator
Field Value
Methods
Activate()
Declaration
public override void Activate()
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetGeneratorUnitsForGeneratorTypeGoalData>.Activate()
Cleanup(IEntityLoaderService)
Declaration
public override void Cleanup(IEntityLoaderService entityLoaderService)
Parameters
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetGeneratorUnitsForGeneratorTypeGoalData>.Cleanup(IdleKit.Gameplay.IEntityLoaderService)
GeneratorUnitIncreasedFromAction(IGeneratorEntity)
Declaration
protected virtual void GeneratorUnitIncreasedFromAction(IGeneratorEntity generatorAction)
Parameters
OnBuyGenerator(BuyGeneratorStateAction)
Declaration
protected virtual void OnBuyGenerator(BuyGeneratorStateAction stateAction)
Parameters
OnIncrementGeneratorUnit(IncrementGeneratorUnitStateAction)
Declaration
protected virtual void OnIncrementGeneratorUnit(IncrementGeneratorUnitStateAction stateAction)
Parameters
SubscribeActionListener(IEntity)
Declaration
protected override void SubscribeActionListener(IEntity target)
Parameters
Type |
Name |
Description |
IEntity |
target |
|
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetGeneratorUnitsForGeneratorTypeGoalData>.SubscribeActionListener(IdleKit.Gameplay.IEntity)
UnsubscribeActionListener(IEntity)
Declaration
protected override void UnsubscribeActionListener(IEntity target)
Parameters
Type |
Name |
Description |
IEntity |
target |
|
Overrides
IdleKit.Gameplay.Goal<IdleKit.Gameplay.GetGeneratorUnitsForGeneratorTypeGoalData>.UnsubscribeActionListener(IdleKit.Gameplay.IEntity)
Implements
IInjectable