Interface ICurrency
Inherited Members
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface ICurrency : IExchangeable, IUnlockable, ITaggedEntity, IPayoutEntity, IEntity, IInjectable
Properties
currencyData
This ICurrency's static data
Declaration
ICurrencyData currencyData { get; }
Property Value
Type | Description |
---|---|
ICurrencyData |
currencySavedData
This ICurrency's saved data
Declaration
ICurrencySavedData currencySavedData { get; }
Property Value
Type | Description |
---|---|
ICurrencySavedData |
rarityData
A specific type of ITagData used to define how rare an ICurrency is within the game. defaultExchangeValue could also be used to determine GetExchangeValue().
Declaration
IRarityData rarityData { get; }
Property Value
Type | Description |
---|---|
IRarityData |
Methods
Add(Double)
Adds an amount to this ICurrency's saved amount Generally only to be called from IStateActions
Declaration
void Add(double amount)
Parameters
Type | Name | Description |
---|---|---|
Double | amount |
Get()
Returns this ICurrency's current saved value
Declaration
double Get()
Returns
Type | Description |
---|---|
Double |
Remove(Double)
Removes an amount from this ICurrency's saved amount Generally only to be called from IStateActions
Declaration
void Remove(double amount)
Parameters
Type | Name | Description |
---|---|---|
Double | amount |
Set(Double)
Sets this ICurrency's saved amount to the provided value Generally only to be called from IStateActions
Declaration
void Set(double amount)
Parameters
Type | Name | Description |
---|---|---|
Double | amount |