docs.unity.cn
    Show / Hide Table of Contents

    Struct CurrencyExchangeData

    Description of a currency update.

    Namespace: UnityEngine.GameFoundation.Data
    Syntax
    public struct CurrencyExchangeData : IEquatable<CurrencyExchangeData>

    Fields

    amount

    The amount.

    Declaration
    public long amount
    Field Value
    Type Description
    Int64

    currencyKey

    The identifier of the updated currency.

    Declaration
    public string currencyKey
    Field Value
    Type Description
    String

    Methods

    Equals(Object)

    Tells whether this CurrencyExchangeData 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

    true if equals, false otherwise.

    Overrides
    ValueType.Equals(Object)

    Equals(CurrencyExchangeData)

    Declaration
    public bool Equals(CurrencyExchangeData other)
    Parameters
    Type Name Description
    CurrencyExchangeData other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Gets the hash code of this CurrencyExchangeData instance. Returns the hash code of its currencyKey.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code of this CurrencyExchangeData instance.

    Overrides
    ValueType.GetHashCode()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021