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;
|
||||
}
|
||||
|
||||
if (!NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Rpc"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Rpc"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
// validate
|
||||
return NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Rpc") &&
|
||||
NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Rpc");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user