Table of Contents

Struct EquippedClothingIterator

Namespace
Uncreated.Warfare.Util.Inventory
Assembly
Uncreated.Warfare.dll

Enumerate through a player's clothes.

public struct EquippedClothingIterator : IEnumerable<ClothingItem>, IEnumerable, IEnumerator<ClothingItem>, IEnumerator, IDisposable
Implements
Inherited Members
Extension Methods

Constructors

EquippedClothingIterator(Player)

public EquippedClothingIterator(Player player)

Parameters

player Player

EquippedClothingIterator(PlayerClothing)

public EquippedClothingIterator(PlayerClothing clothing)

Parameters

clothing PlayerClothing

EquippedClothingIterator(WarfarePlayer)

public EquippedClothingIterator(WarfarePlayer player)

Parameters

player WarfarePlayer

Properties

Current

Gets the element in the collection at the current position of the enumerator.

public readonly ClothingItem Current { get; }

Property Value

ClothingItem

The element in the collection at the current position of the enumerator.

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public EquippedClothingIterator GetEnumerator()

Returns

EquippedClothingIterator

An enumerator that can be used to iterate through the collection.

MoveNext()

Advances the enumerator to the next element of the collection.

public bool MoveNext()

Returns

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

public void Reset()

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.