Interface IUpgradeRequirement
Assembly: cs.temp.dll.dll
Syntax
public interface IUpgradeRequirement
Properties
requiredAmount
The amount that is required for the upgrade to be performed
Declaration
double requiredAmount { get; }
Property Value
requirementId
Declaration
string requirementId { get; }
Property Value
Methods
CanUpgrade(Double)
Returns true if the player has enough resources to meet these requirements
Declaration
bool CanUpgrade(double playerCurrencyAmount)
Parameters
Type |
Name |
Description |
Double |
playerCurrencyAmount |
|
Returns
GetUpgradeProgression(Double)
Returns the current progression towards being able to afford the requirement as a normalized value (0 - 1)
Declaration
float GetUpgradeProgression(double playerCurrencyAmount)
Parameters
Type |
Name |
Description |
Double |
playerCurrencyAmount |
|
Returns