docs.unity.cn
    Show / Hide Table of Contents

    Class ExchangeDefinition

    Describe the ITradable change of a Payout.

    Inheritance
    Object
    ExchangeDefinition
    Namespace: UnityEngine.GameFoundation
    Syntax
    public class ExchangeDefinition : IEquatable<ExchangeDefinition>

    Properties

    amount

    The amount of the tradableDefinition. As a payout, the amount is added to its respective container (inventory for InventoryItem or wallet for Currency). As a cost, the amount is removed from its respective container.

    Declaration
    public long amount { get; }
    Property Value
    Type Description
    Int64

    tradableDefinition

    The tradable of the exchange.

    Declaration
    public TradableDefinition tradableDefinition { get; }
    Property Value
    Type Description
    TradableDefinition

    Methods

    Equals(Object)

    Tells whether this ExchangeDefinition 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
    Object.Equals(Object)

    Equals(ExchangeDefinition)

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

    GetHashCode()

    Gets the hash code of this ExchangeDefinition. Returns the hash code of its .

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code of this ExchangeDefinition.

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