mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
breaking: SendRpcInternal removed now unnecessary invokeClass parameter from NetworkBehaviour and Weaver
This commit is contained in:
parent
d0b2ecf7ed
commit
99dd9fdafb
@ -80,9 +80,6 @@ public static MethodDefinition ProcessRpcCall(WeaverTypes weaverTypes, Writers w
|
|||||||
// invoke SendInternal and return
|
// invoke SendInternal and return
|
||||||
// this
|
// this
|
||||||
worker.Emit(OpCodes.Ldarg_0);
|
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
|
// pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
|
||||||
worker.Emit(OpCodes.Ldstr, md.FullName);
|
worker.Emit(OpCodes.Ldstr, md.FullName);
|
||||||
// writer
|
// writer
|
||||||
|
@ -248,7 +248,7 @@ protected void SendCommandInternal(string functionFullName, NetworkWriter writer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pass full function name to avoid ClassA.Func <-> ClassB.Func collisions
|
// 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
|
// this was in Weaver before
|
||||||
if (!NetworkServer.active)
|
if (!NetworkServer.active)
|
||||||
|
Loading…
Reference in New Issue
Block a user