Method Schedule
Schedule(DynamicBuffer<OutgoingRpcDataStreamBuffer>, ComponentLookup<GhostInstance>, TActionRequest)
Schedules an rpc to be sent through the network, by serializing and appending a new rpc packet into the OutgoingRpcDataStreamBuffer, for the given connection.
The binary rpc data has the following format:
- PacketType: short or long based on the DynamicAssemblyList.
- MsgLen: short, the length of the serialized data.
- RpcData: the binary data generated by invoking the TActionSerializer
serialize method.
Declaration
public void Schedule(DynamicBuffer<OutgoingRpcDataStreamBuffer> buffer, ComponentLookup<GhostInstance> ghostFromEntity, TActionRequest data)
Parameters
Type | Name | Description |
---|---|---|
DynamicBuffer<OutgoingRpcDataStreamBuffer> | buffer | |
ComponentLookup<GhostInstance> | ghostFromEntity | |
TActionRequest | data |
Exceptions
Type | Condition |
---|---|
InvalidOperationException |