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
-
IEnumerable<T>
- Inherited Members
Constructors
NetworkUnorderedList(int)
public NetworkUnorderedList(int capacity)
Parameters
capacityint
Properties
Count
Gets the number of items contained in the list.
public int Count { get; }
Property Value
Methods
Add(T)
Adds an item to the list.
public bool Add(T item)
Parameters
itemTThe 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
InternalInit(INetickNetworkScript, int*, int, int)
public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)
Parameters
behINetickNetworkScriptstateint*elementSizeWordsintflagsint
InternalReset()
public override void InternalReset()
Remove(T)
Removes an item from the list.
public bool Remove(T item)
Parameters
itemTThe item to add.
Returns
- bool
True if the item was removed; otherwise, false.