Weaver CommandProcessor validation moved to NetworkBehaviourProcessor.ProcessCommand

This commit is contained in:
vis2k 2020-08-26 13:12:56 +02:00
parent 5e7257d7bc
commit 820d0daa29
2 changed files with 1 additions and 7 deletions

View File

@ -123,11 +123,5 @@ static void AddSenderConnection(MethodDefinition method, ILProcessor worker)
} }
} }
} }
public static bool ValidateCommand(MethodDefinition md)
{
// validate
return NetworkBehaviourProcessor.ValidateRemoteCallAndParameters(md, RemoteCallType.Command);
}
} }
} }

View File

@ -1081,7 +1081,7 @@ void ProcessCommand(HashSet<string> names, MethodDefinition md, CustomAttribute
return; return;
} }
if (!CommandProcessor.ValidateCommand(md)) if (!ValidateRemoteCallAndParameters(md, RemoteCallType.Command))
return; return;
if (names.Contains(md.Name)) if (names.Contains(md.Name))