Struct ItemList.Enumerator
Namespace: UnityEngine.GameFoundation
Syntax
public struct Enumerator : IEnumerator<InventoryItem>, IEnumerator, IDisposable
Constructors
Enumerator(ItemList)
Constructor for ItemList.Enumerator class for this ItemList.
Declaration
public Enumerator(ItemList itemList)
Parameters
Type | Name | Description |
---|---|---|
ItemList | itemList | Owner of this ItemList.Enumerator. |
Properties
Current
Current InventoryItem that this ItemList.Enumerator refers to.
Declaration
public InventoryItem Current { get; }
Property Value
Type | Description |
---|---|
InventoryItem |
Methods
Dispose()
Required method for IEnumerator interface.
Declaration
public void Dispose()
MoveNext()
Enable foreach functionality for this ItemList.Enumerator for this ItemList.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean |
|
Reset()
Reset ItemList.Enumerator to permit iterating this ItemList again from the start.
Declaration
public void Reset()