Class RpcSystem
Inherited Members
Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
Unity.Entities.SystemBase.OnCreateForCompiler()
Unity.Entities.ComponentSystemBase.GetComponentTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetDynamicComponentTypeHandle(Unity.Entities.ComponentType)
Unity.Entities.ComponentSystemBase.GetBufferTypeHandle<T>(System.Boolean)
Unity.Entities.ComponentSystemBase.GetSharedComponentTypeHandle<T>()
Unity.Entities.ComponentSystemBase.GetEntityTypeHandle()
Unity.Entities.ComponentSystemBase.ExecutingSystemType
Namespace: Unity.NetCode
Syntax
public class RpcSystem : SystemBase
Constructors
RpcSystem()
Declaration
public RpcSystem()
Fields
DynamicAssemblyList
Treat the set of assemblies loaded on the client / server as dynamic or different. This is required if assemblies containing ghost component serializers or RPC serializers are removed when building standalone. This property is only read during system creation, so it must be set from the ClientServerBootstrap.
Declaration
public static bool DynamicAssemblyList
Field Value
Type | Description |
---|---|
Boolean |
Methods
CalculateVersionHash()
Declaration
public ulong CalculateVersionHash()
Returns
Type | Description |
---|---|
UInt64 |
GetRpcQueue<TActionSerializer, TActionRequest>()
Declaration
public RpcQueue<TActionSerializer, TActionRequest> GetRpcQueue<TActionSerializer, TActionRequest>()
where TActionSerializer : struct, IRpcCommandSerializer<TActionRequest> where TActionRequest : struct, IComponentData
Returns
Type | Description |
---|---|
RpcQueue<TActionSerializer, TActionRequest> |
Type Parameters
Name | Description |
---|---|
TActionSerializer | |
TActionRequest |
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides
RegisterRpc(ComponentType, PortableFunctionPointer<RpcExecutor.ExecuteDelegate>)
Declaration
public void RegisterRpc(ComponentType type, PortableFunctionPointer<RpcExecutor.ExecuteDelegate> exec)
Parameters
Type | Name | Description |
---|---|---|
ComponentType | type | |
PortableFunctionPointer<RpcExecutor.ExecuteDelegate> | exec |
RegisterRpc<TActionSerializer, TActionRequest>()
Declaration
public void RegisterRpc<TActionSerializer, TActionRequest>()
where TActionSerializer : struct, IRpcCommandSerializer<TActionRequest> where TActionRequest : struct, IComponentData
Type Parameters
Name | Description |
---|---|
TActionSerializer | |
TActionRequest |
SendProtocolVersion(DynamicBuffer<OutgoingRpcDataStreamBufferComponent>, NetworkProtocolVersion)
Declaration
public static void SendProtocolVersion(DynamicBuffer<OutgoingRpcDataStreamBufferComponent> buffer, NetworkProtocolVersion version)
Parameters
Type | Name | Description |
---|---|---|
DynamicBuffer<OutgoingRpcDataStreamBufferComponent> | buffer | |
NetworkProtocolVersion | version |