Table of Contents

Struct RadiusRegionsEnumerator

Namespace
Uncreated.Warfare.Util.Region
Assembly
Uncreated.Warfare.dll

Enumerates all regions containing a circle of a given radius.

public struct RadiusRegionsEnumerator : IEnumerator<RegionCoord>, IEnumerator, IDisposable, IEnumerable<RegionCoord>, IEnumerable
Implements
IEnumerator<RegionCoord>
IEnumerable<RegionCoord>
Inherited Members
Extension Methods

Constructors

RadiusRegionsEnumerator(Vector2, float)

public RadiusRegionsEnumerator(Vector2 center, float radius)

Parameters

center Vector2
radius float

RadiusRegionsEnumerator(Vector3, float)

public RadiusRegionsEnumerator(Vector3 center, float radius)

Parameters

center Vector3
radius float

Properties

Current

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

public RegionCoord Current { get; }

Property Value

RegionCoord

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

Methods

GetEnumerator()

public readonly RadiusRegionsEnumerator GetEnumerator()

Returns

RadiusRegionsEnumerator

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.