예제 #1
0
        /// <summary>
        /// Recursively goes through a type and its children to apply patches. Useful for structured patch definitions.
        /// </summary>
        /// <param name="harmony">The patching instance</param>
        /// <param name="type">The toplevel type</param>
        public static void PatchAllRecursive(this Harmony harmony, Type type)
        {
            harmony.PatchAllRecursiveInternal(type);

            using (ManualLogSource log = Logger.CreateLogSource(nameof(HarmonyExtensions)))
            {
                log.DevLog(harmony);
            }
        }