CommandProcessor.ProcessMethodsValidateCommand simplified

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

View File

@ -156,16 +156,9 @@ public static bool ProcessMethodsValidateCommand(TypeDefinition td, MethodDefini
return false;
}
if (!NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command"))
{
return false;
}
if (!NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command"))
{
return false;
}
return true;
// validate
return NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command") &&
NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command");
}
}
}