Class SyncQueue<T>
Inheritance
object
SyncQueue<T>
Assembly: LiteEntitySystem.dll
Syntax
public class SyncQueue<T> : SyncableField, IReadOnlyCollection<T>, IEnumerable<T>, ICollection, IEnumerable where T : unmanaged
Type Parameters
Properties
Count
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
Type |
Description |
int |
The number of elements in the collection.
|
IsRollbackSupported
Is supported rollback by this syncable field
Declaration
public override bool IsRollbackSupported { get; }
Property Value
Overrides
IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Declaration
public bool IsSynchronized { get; }
Property Value
SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Declaration
public object SyncRoot { get; }
Property Value
Type |
Description |
object |
An object that can be used to synchronize access to the ICollection.
|
Methods
AfterReadRPC()
Declaration
protected override void AfterReadRPC()
Overrides
BeforeReadRPC()
Declaration
protected override void BeforeReadRPC()
Overrides
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
CopyTo(Array, int)
Declaration
public void CopyTo(Array array, int index)
Parameters
Type |
Name |
Description |
Array |
array |
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
|
int |
index |
The zero-based index in array at which copying begins.
|
Exceptions
Dequeue()
Declaration
Returns
Enqueue(T)
Declaration
public void Enqueue(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
GetEnumerator()
Declaration
public Queue<T>.Enumerator GetEnumerator()
Returns
OnRollback()
Declaration
protected override void OnRollback()
Overrides
OnSyncRequested()
Declaration
protected override void OnSyncRequested()
Overrides
Peek()
Declaration
Returns
RegisterRPC(ref SyncableRPCRegistrator)
Declaration
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Overrides
TryDequeue(out T)
Declaration
public bool TryDequeue(out T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
TryPeek(out T)
Declaration
public bool TryPeek(out T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Implements