add comment

This commit is contained in:
vis2k 2021-03-11 14:23:18 +08:00
parent 038a1e3fd2
commit 2d004609c4

View File

@ -34,7 +34,10 @@ public static MethodDefinition ProcessTargetRpcInvoke(TypeDefinition td, MethodD
// NetworkConnection parameter is optional
if (HasNetworkConnectionParameter(md))
{
// if call has NetworkConnection write clients connection as first arg
// on server, the NetworkConnection parameter is a connection to client.
// when the rpc is invoked on the client, it still has the same
// function signature. we pass in the connection to server,
// which is cleaner than just passing null)
//NetworkClient.readyconnection
worker.Emit(OpCodes.Call, WeaverTypes.ReadyConnectionReference);
}