Class SyncArray<T>
Assembly: LiteEntitySystem.dll
Syntax
public class SyncArray<T> : SyncableField 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
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 |
|