mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
RpcProcessor.ProcessMethodsValidateRpc simplified
This commit is contained in:
parent
476af23829
commit
c964ef7855
@ -109,16 +109,9 @@ public static bool ProcessMethodsValidateRpc(TypeDefinition td, MethodDefinition
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Rpc"))
|
// validate
|
||||||
{
|
return NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Rpc") &&
|
||||||
return false;
|
NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Rpc");
|
||||||
}
|
|
||||||
|
|
||||||
if (!NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Rpc"))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user