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