public static bool IsAny(this ServerCommand serverCommand, params Command[] commands) { if (commands == null || commands.Length == 0) return false; foreach (Command command in commands) { if (serverCommand.Is(command)) return true; } return false; }
public static bool IsAny(this ServerCommand serverCommand, params CommandInfo[] commandInfoList) { if (commandInfoList == null || commandInfoList.Length == 0) return false; foreach (CommandInfo commandInfo in commandInfoList) { if (serverCommand.Is(commandInfo)) return true; } return false; }