Show / Hide Table of Contents

Class SyncableField

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

Inheritance
object
InternalBaseClass
SyncableField
SyncArray<T>
SyncDict<TKey, TValue>
SyncFixedArray<T>
SyncHashSet<T>
SyncList<T>
SyncNetSerializable<T>
SyncQueue<T>
SyncSpanSerializable<T>
SyncSquare<T>
SyncStateMachine<T>
SyncString
SyncTimer
SyncChilds
Inherited Members
InternalBaseClass.OnSyncRequested()
Namespace: LiteEntitySystem
Assembly: LiteEntitySystem.dll
Syntax
public abstract class SyncableField : InternalBaseClass

Properties

IsClient

Is syncableField on client

Declaration
protected bool IsClient { get; }
Property Value
Type Description
bool

IsRollbackSupported

Is supported rollback by this syncable field

Declaration
public virtual bool IsRollbackSupported { get; }
Property Value
Type Description
bool

IsServer

Is syncableField on server

Declaration
protected bool IsServer { get; }
Property Value
Type Description
bool

ParentEntity

Owner of this syncable field

Declaration
protected InternalEntity ParentEntity { get; }
Property Value
Type Description
InternalEntity

ParentEntityLogic

Owner of this syncable field casted to EntityLogic

Declaration
protected EntityLogic ParentEntityLogic { get; }
Property Value
Type Description
EntityLogic

Methods

AfterReadRPC()

Declaration
protected virtual void AfterReadRPC()

BeforeReadRPC()

Declaration
protected virtual void BeforeReadRPC()

ExecuteRPC(in RemoteCall)

Declaration
protected void ExecuteRPC(in RemoteCall rpc)
Parameters
Type Name Description
RemoteCall rpc

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

Declaration
protected void ExecuteRPC<T>(in RemoteCallSerializable<T> rpc, T value) where T : struct, ISpanSerializable
Parameters
Type Name Description
RemoteCallSerializable<T> rpc
T value
Type Parameters
Name Description
T

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

Declaration
protected void ExecuteRPC<T>(in RemoteCallSpan<T> rpc, ReadOnlySpan<T> value) where T : unmanaged
Parameters
Type Name Description
RemoteCallSpan<T> rpc
ReadOnlySpan<T> value
Type Parameters
Name Description
T

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

Declaration
protected void ExecuteRPC<T>(in RemoteCall<T> rpc, T value) where T : unmanaged
Parameters
Type Name Description
RemoteCall<T> rpc
T value
Type Parameters
Name Description
T

OnRollback()

Declaration
protected virtual void OnRollback()

RegisterRPC(ref SyncableRPCRegistrator)

Declaration
protected virtual void RegisterRPC(ref SyncableRPCRegistrator r)
Parameters
Type Name Description
SyncableRPCRegistrator r
In this article
Back to top Generated by DocFX