Class Currency
Describes a currency.
Inherited Members
Namespace: UnityEngine.GameFoundation
Syntax
public class Currency : TradableDefinition, IEquatable<CatalogItem>, IComparable<CatalogItem>, IQuantifiable, IEquatable<Currency>
Properties
maximumBalance
The maximum balance the player can have. 0 means no limit.
Declaration
public long maximumBalance { get; }
Property Value
Type | Description |
---|---|
Int64 |
quantity
Quantity of this object.
Declaration
public long quantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
Implements
type
Declaration
public CurrencyType type { get; }
Property Value
Type | Description |
---|---|
CurrencyType |
Methods
Equals(Object)
Tells whether this Currency instance equals obj
.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The other object to compare this instance with. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
GetHashCode()
Gets the hash code of this CatalogItem instance. Returns the hash code of its key.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this CatalogItem instance. |
Overrides
ToString()
Gets the string representation of this Currency instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of this Currency instance. |