Interface IExchangeable
An entity that has a value, or values, associated with it that can be used to perform exchanges.
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IExchangeable
Methods
GetExchangeValue()
Returns the exchange value for this object that can be used when calculating an exchange/trade between two IExchangeables. See GetRate(IExchangeable, IExchangeable)
Declaration
double GetExchangeValue()
Returns
Type | Description |
---|---|
Double | A value that is greater than 0 |
Examples
GetExchangeValue() will first see if an explicit exchange value is set to a valid value, if not, the exchange value is instead fetched from the rarityData the currency.