Interface IStoreUpgradeableCurrencyCollectionSavedData
Saved data associated with a given IStoreUpgradeableCurrencyCollection
Inherited Members
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface IStoreUpgradeableCurrencyCollectionSavedData : ISavedData, IInjectable
Properties
CollectionPurchaseInfo
Returns a list of IUpgradeableCurrency ids and the number of times they have been purchased.
Declaration
CollectionPurchaseInfo[] CollectionPurchaseInfo { get; }
Property Value
Type | Description |
---|---|
CollectionPurchaseInfo[] |
RefreshTime
Return the time at which the CurrencyPool will refresh.
Declaration
long RefreshTime { get; }
Property Value
Type | Description |
---|---|
Int64 |
Methods
Buy(String)
Update the number purchased of a specific IUpgradeableCurrency id.
Declaration
void Buy(string upgradeableCurrencyId)
Parameters
Type | Name | Description |
---|---|---|
String | upgradeableCurrencyId |
GetCurrencyPool()
Returns the ids of the IUpgradeableCurrencys currently available for purchase.
Declaration
string[] GetCurrencyPool()
Returns
Type | Description |
---|---|
String[] |
SetCollectionPurchaseInfo(IUpgradeableCurrency[])
Sets the list of IUpgradeableCurrency ids currently available for purchase.
Declaration
void SetCollectionPurchaseInfo(IUpgradeableCurrency[] currencyPool)
Parameters
Type | Name | Description |
---|---|---|
IUpgradeableCurrency[] | currencyPool |
SetRefreshTime(Int64)
Set the RefreshTime.
Declaration
void SetRefreshTime(long newRefreshTimestamp)
Parameters
Type | Name | Description |
---|---|---|
Int64 | newRefreshTimestamp |