RpcProcessor.ProcessMethodsValidateRpc simplified

This commit is contained in:
vis2k 2019-01-02 20:04:02 +01:00
parent 476af23829
commit c964ef7855

View File

@ -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");
}
}
}