Skip to main content

ClientSerializedEnumerable

A class in Root.Township, Alta.Networking.Internal.

Client-side enumerator over the entities the client serializes, in identifier order from a sorted list. EntityManager.GetClientSerialized returns its single instance.

Constructors​

MemberWhat it is
ClientSerializedEnumerable(SortedList<uint, NetworkEntityLink> pairs)Creates a ClientSerializedEnumerable from pairs.

Fields​

4 private and internal fields
MemberWhat it is
private bool isStartedWhether iteration has reached the entity whose identifier is Start.
private IEnumerator<KeyValuePair<uint, NetworkEntityLink>> pairEnumeratorEnumerator over pairs for the current pass.
private SortedList<uint, NetworkEntityLink> pairsThe sorted list of identifier to entity link that it walks (shared with EntityManager).
private List<uint> tempEmptyEntitiesIdentifiers of links found without an entity, removed on the next Reset.

Methods​

MemberWhat it is
override bool MoveNext()Moves to the next entity from Start onwards, skipping and noting links whose entity has gone.
override void Reset()Removes the noted empty links from the list and starts again from the beginning.

Used in​

Members of other types that take, return or hold a ClientSerializedEnumerable: