Struct RPCRegistrator
- Namespace
- LiteEntitySystem
- Assembly
- LiteEntitySystem.dll
public readonly ref struct RPCRegistrator
Methods
BindOnChange<TEntity, T>(ref SyncVar<T>, Action<TEntity, T>, BindOnChangeFlags)
Bind notification of SyncVar changes to action
public void BindOnChange<TEntity, T>(ref SyncVar<T> syncVar, Action<TEntity, T> onChangedAction, BindOnChangeFlags flags = BindOnChangeFlags.ExecuteOnSync) where TEntity : InternalEntity where T : unmanaged
Parameters
syncVarSyncVar<T>Variable to bind
onChangedActionAction<TEntity, T>Action that will be called when variable changes by sync
flagsBindOnChangeFlags
Type Parameters
TEntityT
BindOnChange<TEntity, T>(TEntity, ref SyncVar<T>, Action<T>, BindOnChangeFlags)
Bind notification of SyncVar changes to action
public void BindOnChange<TEntity, T>(TEntity self, ref SyncVar<T> syncVar, Action<T> onChangedAction, BindOnChangeFlags flags = BindOnChangeFlags.ExecuteOnSync) where TEntity : InternalEntity where T : unmanaged
Parameters
selfTEntityTarget entity for binding
syncVarSyncVar<T>Variable to bind
onChangedActionAction<T>Action that will be called when variable changes by sync
flagsBindOnChangeFlags
Type Parameters
TEntityT
CreateRPCAction<TEntity>(Action<TEntity>, ref RemoteCall, ExecuteFlags)
Creates cached rpc action
public void CreateRPCAction<TEntity>(Action<TEntity> methodToCall, ref RemoteCall remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity
Parameters
methodToCallAction<TEntity>RPC method to call
remoteCallHandleRemoteCalloutput handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntity
CreateRPCAction<TEntity>(TEntity, Action, ref RemoteCall, ExecuteFlags)
Creates cached rpc action
public void CreateRPCAction<TEntity>(TEntity self, Action methodToCall, ref RemoteCall remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity
Parameters
selfTEntityTarget entity with RPC
methodToCallActionRPC method to call
remoteCallHandleRemoteCalloutput handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntity
CreateRPCAction<TEntity, T>(SpanAction<TEntity, T>, ref RemoteCallSpan<T>, ExecuteFlags)
Creates cached rpc action with Span argument
public void CreateRPCAction<TEntity, T>(SpanAction<TEntity, T> methodToCall, ref RemoteCallSpan<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : unmanaged
Parameters
methodToCallSpanAction<TEntity, T>RPC method to call
remoteCallHandleRemoteCallSpan<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT
CreateRPCAction<TEntity, T>(Action<TEntity, T>, ref RemoteCallSerializable<T>, ExecuteFlags)
Creates cached rpc action with ISpanSerializable argument
public void CreateRPCAction<TEntity, T>(Action<TEntity, T> methodToCall, ref RemoteCallSerializable<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : struct, ISpanSerializable
Parameters
methodToCallAction<TEntity, T>RPC method to call
remoteCallHandleRemoteCallSerializable<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT
CreateRPCAction<TEntity, T>(Action<TEntity, T>, ref RemoteCall<T>, ExecuteFlags)
Creates cached rpc action with valueType argument
public void CreateRPCAction<TEntity, T>(Action<TEntity, T> methodToCall, ref RemoteCall<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : unmanaged
Parameters
methodToCallAction<TEntity, T>RPC method to call
remoteCallHandleRemoteCall<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT
CreateRPCAction<TEntity, T>(TEntity, SpanAction<T>, ref RemoteCallSpan<T>, ExecuteFlags)
Creates cached rpc action with Span argument
public void CreateRPCAction<TEntity, T>(TEntity self, SpanAction<T> methodToCall, ref RemoteCallSpan<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : unmanaged
Parameters
selfTEntityTarget entity with RPC
methodToCallSpanAction<T>RPC method to call
remoteCallHandleRemoteCallSpan<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT
CreateRPCAction<TEntity, T>(TEntity, Action<T>, ref RemoteCallSerializable<T>, ExecuteFlags)
Creates cached rpc action with ISpanSerializable argument
public void CreateRPCAction<TEntity, T>(TEntity self, Action<T> methodToCall, ref RemoteCallSerializable<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : struct, ISpanSerializable
Parameters
selfTEntityTarget entity with RPC
methodToCallAction<T>RPC method to call
remoteCallHandleRemoteCallSerializable<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT
CreateRPCAction<TEntity, T>(TEntity, Action<T>, ref RemoteCall<T>, ExecuteFlags)
Creates cached rpc action with valueType argument
public void CreateRPCAction<TEntity, T>(TEntity self, Action<T> methodToCall, ref RemoteCall<T> remoteCallHandle, ExecuteFlags flags) where TEntity : InternalEntity where T : unmanaged
Parameters
selfTEntityTarget entity with RPC
methodToCallAction<T>RPC method to call
remoteCallHandleRemoteCall<T>output handle that should be used to call rpc
flagsExecuteFlagsRPC execution flags
Type Parameters
TEntityT