docs.unity.cn
    Show / Hide Table of Contents

    Struct ItemMapData.ItemData

    Item data for 1 item in the ItemMapData.

    Namespace: UnityEngine.GameFoundation.Data
    Syntax
    [Serializable]
    public struct ItemData : IEquatable<ItemMapData.ItemData>

    Constructors

    ItemData(String, String)

    Create a new ItemMapData.ItemData for 1 item in the ItemMapData.

    Declaration
    public ItemData(string slot, string id)
    Parameters
    Type Name Description
    String slot

    Slot to use for this InventoryItem.

    String id

    id for this item.

    Fields

    id

    id for this item.

    Declaration
    public string id
    Field Value
    Type Description
    String

    slot

    Slot used for this item.

    Declaration
    public string slot
    Field Value
    Type Description
    String

    Methods

    Equals(Object)

    Tells whether this ItemMapData.ItemData 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(ItemMapData.ItemData)

    Declaration
    public bool Equals(ItemMapData.ItemData other)
    Parameters
    Type Name Description
    ItemMapData.ItemData other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Gets the hash code of this ItemMapData.ItemData instance. Returns the hash code of its id.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code of this ItemMapData.ItemData instance.

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