Skip to content

KernelAPI reference

Struct EntityChildren.Enumerator

Namespace: MicroEngine.Scenes
Assembly: MicroEngine.Scene.dll
Guide: Scenes

Walks the children; allocates nothing.

C#
public struct EntityChildren.Enumerator : IEnumerator<EntityId>, IEnumerator, IDisposable

Implements

IEnumerator<EntityId>, IEnumerator, IDisposable

Properties

Current

The current child.

C#
public readonly EntityId Current { get; }

Property Value

EntityId

Methods

Dispose()

Nothing to release.

C#
public readonly void Dispose()

MoveNext()

Moves to the next live child.

C#
public bool MoveNext()

Returns

bool

Exceptions

InvalidOperationException

An entity changed parent since the walk started.

Reset()

Starts over.

C#
public void Reset()