Table of Contents

Class SyncableField

Namespace
LiteEntitySystem
Assembly
LiteEntitySystem.dll

Base class for fields with custom serialization (strings,lists,etc)

public abstract class SyncableField : InternalBaseClass
Inheritance
object
SyncableField
Derived
Inherited Members

Properties

IsClient

Is syncableField on client

protected bool IsClient { get; }

Property Value

bool

IsServer

Is syncableField on server

protected bool IsServer { get; }

Property Value

bool

ParentEntity

Owner of this syncable field

protected InternalEntity ParentEntity { get; }

Property Value

InternalEntity

ParentEntityLogic

Owner of this syncable field casted to EntityLogic

protected EntityLogic ParentEntityLogic { get; }

Property Value

EntityLogic

Methods

ExecuteRPC(in RemoteCall)

protected void ExecuteRPC(in RemoteCall rpc)

Parameters

rpc RemoteCall

ExecuteRPC<T>(in RemoteCallSerializable<T>, T)

protected void ExecuteRPC<T>(in RemoteCallSerializable<T> rpc, T value) where T : struct, ISpanSerializable

Parameters

rpc RemoteCallSerializable<T>
value T

Type Parameters

T

ExecuteRPC<T>(in RemoteCallSpan<T>, ReadOnlySpan<T>)

protected void ExecuteRPC<T>(in RemoteCallSpan<T> rpc, ReadOnlySpan<T> value) where T : unmanaged

Parameters

rpc RemoteCallSpan<T>
value ReadOnlySpan<T>

Type Parameters

T

ExecuteRPC<T>(in RemoteCall<T>, T)

protected void ExecuteRPC<T>(in RemoteCall<T> rpc, T value) where T : unmanaged

Parameters

rpc RemoteCall<T>
value T

Type Parameters

T

RegisterRPC(ref SyncableRPCRegistrator)

protected virtual void RegisterRPC(ref SyncableRPCRegistrator r)

Parameters

r SyncableRPCRegistrator