internal static List <AttributePatch> GetPatchMethods(Type type, bool collectIncomplete = false) { return(AccessTools.GetDeclaredMethods(type) .SelectMany(m => AttributePatch.Create(m, collectIncomplete)) .Where(attributePatch => attributePatch is object) .ToList()); }
internal static List <AttributePatch> GetPatchMethods(Type type) { return(AccessTools.GetDeclaredMethods(type) .Select(method => AttributePatch.Create(method)) .Where(attributePatch => attributePatch != null) .ToList()); }
internal static List <AttributePatch> GetPatchMethods(Type type) { var harmonyPatchName = typeof(HarmonyPatch).FullName; return(AccessTools.GetDeclaredMethods(type) .Select(method => AttributePatch.Create(method)) .Where(attributePatch => attributePatch != null) .ToList()); }