Class SyncArray<T>
Assembly: LiteEntitySystem.dll
Syntax
public class SyncArray<T> : SyncableField, IEnumerable<T>, IEnumerable where T : unmanaged
Type Parameters
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
Length
Declaration
public int Length { get; }
Property Value
Value
Changes to this array will NOT sync,
so it should be used as readonly!
Declaration
public T[] Value { get; }
Property Value
Methods
Clear()
Declaration
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
OnSyncRequested()
Declaration
protected override void OnSyncRequested()
Overrides
RegisterRPC(ref SyncableRPCRegistrator)
Declaration
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Overrides
Resize(int)
Declaration
public void Resize(int newSize)
Parameters
Type |
Name |
Description |
int |
newSize |
|
Implements