Interface IGeneratorEntitySavedData
Saved data for IGeneratorEntity.
Inherited Members
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IGeneratorEntitySavedData : IBaseCollectorEntitySavedData, ISavedData, IInjectable
Properties
generatorUnit
Returns the number of generator units purchased by the player.
Declaration
int generatorUnit { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
generatorUnitTargetHit
Returns the number of IGeneratorUnitTargetData reached by the player.
Declaration
int generatorUnitTargetHit { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
isAutomated
Returns if the IGeneratorEntity has been Automate().
Declaration
bool isAutomated { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
Ascend()
Clean up the IGeneratorEntitySavedData due to ascension.
Declaration
void Ascend()
Automate()
Automate the IGeneratorEntity, this will set the isAutomated to true.
Declaration
void Automate()
IncrementGeneratorUnit(Int32)
Increment the generatorUnit.
Declaration
void IncrementGeneratorUnit(int unitsToIncrease)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | unitsToIncrease | The number of the generatorUnit to increase. |
SetGeneratorUnitTargetHit(Int32)
Set the generatorUnitTargetHit.
Declaration
void SetGeneratorUnitTargetHit(int targetHit)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | targetHit | The value to set the generatorUnitTargetHit to. |