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