Table of Contents

Class SyncSquare<T>

Namespace
LiteEntitySystem.Extensions
Assembly
LiteEntitySystem.dll
public class SyncSquare<T> : SyncableField where T : unmanaged

Type Parameters

T
Inheritance
object
SyncSquare<T>
Inherited Members

Constructors

SyncSquare(int)

public SyncSquare(int size)

Parameters

size int

Properties

this[int, int]

public T this[int i, int j] { get; set; }

Parameters

i int
j int

Property Value

T

Length

public int Length { get; }

Property Value

int

Size

public int Size { get; }

Property Value

int

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

r SyncableRPCRegistrator

Resize(int)

public void Resize(int newSize)

Parameters

newSize int