Class UpgradeRequirement
Inheritance
UpgradeRequirement
Assembly: cs.temp.dll.dll
Syntax
public class UpgradeRequirement : IUpgradeRequirement
Constructors
UpgradeRequirement()
The Beamable SDK requires empty default constructor.
Declaration
public UpgradeRequirement()
UpgradeRequirement(String, Double)
Declaration
public UpgradeRequirement(string requirementId, double requiredAmount)
Parameters
Type |
Name |
Description |
String |
requirementId |
|
Double |
requiredAmount |
|
Properties
RequiredAmount
Declaration
public double RequiredAmount { get; }
Property Value
RequirementId
Declaration
public string RequirementId { get; }
Property Value
Methods
CanUpgrade(Double)
Returns true if the player has enough resources to meet these requirements
Declaration
public virtual 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
public virtual float GetUpgradeProgression(double playerCurrencyAmount)
Parameters
Type |
Name |
Description |
Double |
playerCurrencyAmount |
|
Returns
Implements