breaking: SendRpcInternal removed now unnecessary invokeClass parameter from NetworkBehaviour and Weaver

This commit is contained in:
vis2k 2022-01-18 13:43:44 +08:00
parent d0b2ecf7ed
commit 99dd9fdafb
2 changed files with 1 additions and 4 deletions

View File

@ -80,9 +80,6 @@ public static MethodDefinition ProcessRpcCall(WeaverTypes weaverTypes, Writers w
// invoke SendInternal and return
// this
worker.Emit(OpCodes.Ldarg_0);
worker.Emit(OpCodes.Ldtoken, td);
// invokerClass
worker.Emit(OpCodes.Call, weaverTypes.getTypeFromHandleReference);
// pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
worker.Emit(OpCodes.Ldstr, md.FullName);
// writer

View File

@ -248,7 +248,7 @@ protected void SendCommandInternal(string functionFullName, NetworkWriter writer
}
// pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
protected void SendRPCInternal(Type invokeClass, string functionFullName, NetworkWriter writer, int channelId, bool includeOwner)
protected void SendRPCInternal(string functionFullName, NetworkWriter writer, int channelId, bool includeOwner)
{
// this was in Weaver before
if (!NetworkServer.active)