Table of Contents

Class NetworkUnorderedList<T>

Namespace
Netick
Assembly
Netick.dll

A networked list collection. This is an unordered list meaning that the order of the elements during iteration is undefined.

public sealed class NetworkUnorderedList<T> : NetworkUnorderedList, INetworkCollection, IEnumerable<T>, IEnumerable where T : unmanaged

Type Parameters

T
Inheritance
NetworkUnorderedList<T>
Implements
Inherited Members

Constructors

NetworkUnorderedList(int)

public NetworkUnorderedList(int capacity)

Parameters

capacity int

Properties

Count

Gets the number of items contained in the list.

public int Count { get; }

Property Value

int

Methods

Add(T)

Adds an item to the list.

public bool Add(T item)

Parameters

item T

The item to add.

Returns

bool

True if the item was added; otherwise, false.

Clear()

Removes all elements from the list.

public void Clear()

GetEnumerator()

public NetworkUnorderedList<T>.Enumerator GetEnumerator()

Returns

NetworkUnorderedList<T>.Enumerator

InternalInit(INetickNetworkScript, int*, int, int)

public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)

Parameters

beh INetickNetworkScript
state int*
elementSizeWords int
flags int

InternalReset()

public override void InternalReset()

Remove(T)

Removes an item from the list.

public bool Remove(T item)

Parameters

item T

The item to add.

Returns

bool

True if the item was removed; otherwise, false.