Skip to main content

SerializedEnumerable

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

Walks the linked list of serialized entities from a start index, returning each entity's serializer. Used by EntityManager; skips placeholder links.

Constructors​

MemberWhat it is
SerializedEnumerable(NetworkEntityLink[] links)Creates a SerializedEnumerable from links.

Fields​

MemberWhat it is
protected NetworkEntityLink currentThe current link.
protected NetworkEntityLink nextThe next link to visit.
3 private and internal fields
MemberWhat it is
private int iterationIndexHow many links this pass has stepped through; used in error logs.
private NetworkEntityLink[] linksThe entity link array it walks, following each link's next-serialized pointer.
private static Logger loggerLogger for broken serialized-list errors.

Properties​

MemberWhat it is
EntitySerializer Current { get; }The serializer of the current entity.
int Start { get; set; }Index of the link to start from.
1 private and internal property
MemberWhat it is
private object System.Collections.IEnumerator.Current { get; }Non-generic Current; returns the current EntitySerializer.

Methods​

MemberWhat it is
void Dispose()Does nothing.
IEnumerator<EntitySerializer> GetEnumerator()Resets and returns itself.
virtual bool MoveNext()Moves to the next real serialized entity. Logs and stops if the list is broken.
virtual void Reset()Goes back to the link at Start.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Resets and returns itself.

Used in​

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