Class SyncStack<T>
Inheritance
System.Object
Inherited Members
Show
Syntax
public class SyncStack<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, ISyncObject
Type Parameters
Name | Description |
---|---|
T |
Constructors
SyncStack()
Declaration
public SyncStack()
SyncStack(Stack<T>)
Declaration
public SyncStack(Stack<T> objects)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Stack<T> | objects |
Properties
Count
Declaration
public int Count { get; }
IsReadOnly
Declaration
public bool IsReadOnly { get; }
IsDirty
Declaration
public bool IsDirty { get; }
Methods
ISyncObject.SetShouldSyncFrom(Boolean)
Declaration
void ISyncObject.SetShouldSyncFrom(bool shouldSync)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | shouldSync |
ISyncObject.SetNetworkBehaviour(NetworkBehaviour)
Declaration
void ISyncObject.SetNetworkBehaviour(NetworkBehaviour networkBehaviour)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | networkBehaviour |
Flush()
Declaration
public void Flush()
Reset()
Declaration
public void Reset()
OnSerializeAll(NetworkWriter)
Declaration
public void OnSerializeAll(NetworkWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer |
OnSerializeDelta(NetworkWriter)
Declaration
public void OnSerializeDelta(NetworkWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer |
OnDeserializeAll(NetworkReader)
Declaration
public void OnDeserializeAll(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
OnDeserializeDelta(NetworkReader)
Declaration
public void OnDeserializeDelta(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Push(T)
Declaration
public void Push(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
AddRange(IEnumerable<T>)
Declaration
public void AddRange(IEnumerable<T> range)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | range |
Clear()
Declaration
public void Clear()
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
{T}[] | array | |
System.Int32 | arrayIndex |
Pop()
Declaration
public T Pop()
Returns
Type | Description |
---|---|
T |
IEnumerable<T>.GetEnumerator()
Declaration
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |