Struct BalanceData
Serializable data structure that contains the state of the currency balance.
Namespace: UnityEngine.GameFoundation.Data
Syntax
[Serializable]
public struct BalanceData : IEquatable<BalanceData>
Fields
balance
The balance of the currency
Declaration
public long balance
Field Value
Type | Description |
---|---|
Int64 |
currencyKey
The Key of the currency
Declaration
public string currencyKey
Field Value
Type | Description |
---|---|
String |
Methods
Equals(Object)
Tells whether this BalanceData 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
Equals(BalanceData)
Declaration
public bool Equals(BalanceData other)
Parameters
Type | Name | Description |
---|---|---|
BalanceData | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Gets the hash code of this BalanceData instance. Returns the hash code of its currencyKey.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this BalanceData instance. |