Class NetworkStack<T>
- Namespace
- Netick
- Assembly
- Netick.dll
A networked Stack<T> collection.
public sealed class NetworkStack<T> : NetworkStack, INetworkCollection, IEnumerable<T>, IEnumerable where T : unmanaged
Type Parameters
T
- Inheritance
-
NetworkStack<T>
- Implements
-
IEnumerable<T>
- Inherited Members
Constructors
NetworkStack(int)
public NetworkStack(int capacity)
Parameters
capacity
int
Properties
Count
public int Count { get; }
Property Value
Methods
Add(T)
public void Add(T element)
Parameters
element
T
Clear()
public void Clear()
GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
InternalInit(INetickNetworkScript, int*, int, int)
public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)
Parameters
beh
INetickNetworkScriptstate
int*elementSizeWords
intflags
int
InternalReset()
public override void InternalReset()
Peek()
public T Peek()
Returns
- T
Pop()
public T Pop()
Returns
- T
Push(T)
public bool Push(T item)
Parameters
item
T
Returns
TryPeek(out T)
public bool TryPeek(out T result)
Parameters
result
T
Returns
TryPop(out T)
public bool TryPop(out T result)
Parameters
result
T