Show / Hide Table of Contents

Class SyncArray<T>

Inheritance
object
InternalBaseClass
SyncableField
SyncArray<T>
Implements
IEnumerable<T>
IEnumerable
Inherited Members
SyncableField.IsClient
SyncableField.IsServer
SyncableField.IsRollbackSupported
SyncableField.ParentEntity
SyncableField.ParentEntityLogic
SyncableField.BeforeReadRPC()
SyncableField.AfterReadRPC()
SyncableField.OnRollback()
SyncableField.ExecuteRPC(in RemoteCall)
SyncableField.ExecuteRPC<T>(in RemoteCall<T>, T)
SyncableField.ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)
SyncableField.ExecuteRPC<T>(in RemoteCallSerializable<T>, T)
Namespace: LiteEntitySystem.Extensions
Assembly: LiteEntitySystem.dll
Syntax
public class SyncArray<T> : SyncableField, IEnumerable<T>, IEnumerable where T : unmanaged
Type Parameters
Name Description
T

Constructors

SyncArray(int)

Declaration
public SyncArray(int size)
Parameters
Type Name Description
int size

Properties

this[int]

Declaration
public T this[int index] { get; set; }
Parameters
Type Name Description
int index
Property Value
Type Description
T

Length

Declaration
public int Length { get; }
Property Value
Type Description
int

Value

Changes to this array will NOT sync, so it should be used as readonly!

Declaration
public T[] Value { get; }
Property Value
Type Description
T[]

Methods

Clear()

Declaration
public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>

An enumerator that can be used to iterate through the collection.

HasValue(T, out int)

Declaration
public bool HasValue(T value, out int index)
Parameters
Type Name Description
T value
int index
Returns
Type Description
bool

OnSyncRequested()

Declaration
protected override void OnSyncRequested()
Overrides
InternalBaseClass.OnSyncRequested()

RegisterRPC(ref SyncableRPCRegistrator)

Declaration
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Type Name Description
SyncableRPCRegistrator r
Overrides
SyncableField.RegisterRPC(ref SyncableRPCRegistrator)

Resize(int)

Declaration
public void Resize(int newSize)
Parameters
Type Name Description
int newSize

Implements

IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX