Struct ItemListData
Serializable data structure of an ItemList.
Namespace: UnityEngine.GameFoundation.Data
Syntax
[Serializable]
public struct ItemListData : IEquatable<ItemListData>
Constructors
ItemListData(String)
Initializes a new instance of the ItemListData type.
Declaration
public ItemListData(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id | The id of the item list. |
Fields
id
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| String |
inventoryItems
All ids in this list.
Declaration
public List<string> inventoryItems
Field Value
| Type | Description |
|---|---|
| List<String> |
Methods
Equals(Object)
Tells whether this ItemListData 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(ItemListData)
Declaration
public bool Equals(ItemListData other)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemListData | other |
Returns
| Type | Description |
|---|---|
| Boolean |
GetHashCode()
Gets the hash code of this ItemListData instance. Returns the hash code of its id.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | The hash code of this ItemListData instance. |