mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
CommandProcessor.ProcessMethodsValidateCommand simplified
This commit is contained in:
parent
be86ac5096
commit
476af23829
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user