Struct ReceiveRpcCommandRequest
A component used to signal that an RPC has been received from a remote connection and should be processed.
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct ReceiveRpcCommandRequest : IComponentData, IQueryTypeParameter
Fields
Age
ReceiveRpcCommandRequest has a WarnAboutStaleRpcSystem which will log a warning if this Age value exceeds WarnAboutStaleRpcSystem.MaxRpcAgeFrames. Counts simulation frames. 0 is the simulation frame it is received on.
Declaration
public ushort Age
Field Value
Type | Description |
---|---|
ushort |
SourceConnection
The connection which sent the RPC being processed.
Declaration
public Entity SourceConnection
Field Value
Type | Description |
---|---|
Entity |
Properties
IsConsumed
ReceiveRpcCommandRequest has a WarnAboutStaleRpcSystem which will log a warning if this Age value exceeds WarnAboutStaleRpcSystem.MaxRpcAgeFrames. Counts simulation frames. 0 is the simulation frame it is received on.
Declaration
public bool IsConsumed { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Consume()
ReceiveRpcCommandRequest has a WarnAboutStaleRpcSystem which will log a warning if this Age value exceeds WarnAboutStaleRpcSystem.MaxRpcAgeFrames. Counts simulation frames. 0 is the simulation frame it is received on.
Declaration
public void Consume()