Class SyncSquare<T>
- Namespace
 - LiteEntitySystem.Extensions
 
- Assembly
 - LiteEntitySystem.dll
 
public class SyncSquare<T> : SyncableField where T : unmanaged
  Type Parameters
T
- Inheritance
 - 
      objectSyncSquare<T>
 
- Inherited Members
 
Constructors
SyncSquare(int)
public SyncSquare(int size)
  Parameters
sizeint
Properties
this[int, int]
public T this[int i, int j] { get; set; }
  Parameters
Property Value
- T
 
Length
public int Length { get; }
  Property Value
Size
public int Size { get; }
  Property Value
Value
Changes to this array will NOT sync, so it should be used as readonly!
public T[] Value { get; }
  Property Value
- T[]
 
Methods
Clear()
public void Clear()
  OnSyncRequested()
Method for executing RPCs containing initial sync data that need to be sent after entity creation to existing players or when new player connected
protected override void OnSyncRequested()
  RegisterRPC(ref SyncableRPCRegistrator)
protected override void RegisterRPC(ref SyncableRPCRegistrator r)
  Parameters
Resize(int)
public void Resize(int newSize)
  Parameters
newSizeint