/// <summary> /// 独立检查 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="reporter"></param> public static void RunChecker <T>(ResCheckReporter reporter) where T : ResChecker, new() { var checker = new T(); var r = checker.Check(new DefaultResCheckCallBack()); EB.Debug.Log("reporter is null = " + (reporter == null).ToString()); EB.Debug.Log("RunChecker reporter is " + reporter); reporter.Report(r); }
/// <summary> /// 运行所有的检查 /// </summary> /// <param name="reporter"></param> public static void Run(ResCheckReporter reporter) { List <ResCheckResult> errorResults = RunCheckers(); errorResults.ForEach(r => reporter.Report(r)); }