Struct RPCRegistrator
- Namespace
- LiteEntitySystem
- Assembly
- LiteEntitySystem.dll
public readonly ref struct RPCRegistrator
Methods
BindOnChange<T, TEntity>(ref SyncVar<T>, Action<TEntity, T>)
Bind notification of SyncVar changes to action
public void BindOnChange<T, TEntity>(ref SyncVar<T> syncVar, Action<TEntity, T> onChangedAction) where T : unmanaged where TEntity : InternalEntity
Parameters
syncVar
SyncVar<T>Variable to bind
onChangedAction
Action<TEntity, T>Action that will be called when variable changes by sync
Type Parameters
T
TEntity
BindOnChange<T, TEntity>(TEntity, ref SyncVar<T>, Action<T>)
Bind notification of SyncVar changes to action
public void BindOnChange<T, TEntity>(TEntity self, ref SyncVar<T> syncVar, Action<T> onChangedAction) where T : unmanaged where TEntity : InternalEntity
Parameters
self
TEntityTarget entity for binding
syncVar
SyncVar<T>Variable to bind
onChangedAction
Action<T>Action that will be called when variable changes by sync
Type Parameters
T
TEntity
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
methodToCall
Action<TEntity>RPC method to call
remoteCallHandle
RemoteCalloutput handle that should be used to call rpc
flags
ExecuteFlagsRPC 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
self
TEntityTarget entity with RPC
methodToCall
ActionRPC method to call
remoteCallHandle
RemoteCalloutput handle that should be used to call rpc
flags
ExecuteFlagsRPC 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
methodToCall
SpanAction<TEntity, T>RPC method to call
remoteCallHandle
RemoteCallSpan<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T
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
methodToCall
Action<TEntity, T>RPC method to call
remoteCallHandle
RemoteCallSerializable<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T
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
methodToCall
Action<TEntity, T>RPC method to call
remoteCallHandle
RemoteCall<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T
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
self
TEntityTarget entity with RPC
methodToCall
SpanAction<T>RPC method to call
remoteCallHandle
RemoteCallSpan<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T
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
self
TEntityTarget entity with RPC
methodToCall
Action<T>RPC method to call
remoteCallHandle
RemoteCallSerializable<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T
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
self
TEntityTarget entity with RPC
methodToCall
Action<T>RPC method to call
remoteCallHandle
RemoteCall<T>output handle that should be used to call rpc
flags
ExecuteFlagsRPC execution flags
Type Parameters
TEntity
T