Table of Contents

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
Inherited Members

Constructors

NetworkStack(int)

public NetworkStack(int capacity)

Parameters

capacity int

Properties

Count

public int Count { get; }

Property Value

int

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 INetickNetworkScript
state int*
elementSizeWords int
flags 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

bool

TryPeek(out T)

public bool TryPeek(out T result)

Parameters

result T

Returns

bool

TryPop(out T)

public bool TryPop(out T result)

Parameters

result T

Returns

bool