예제 #1
0
 public static IEnumerable <MethodBase> AllPatchedMethods()
 {
     lock (locker)
     {
         return(HarmonySharedState.GetPatchedMethods());
     }
 }
예제 #2
0
        public static IEnumerable <MethodBase> AllPatchedMethods()
        {
            var obj = locker;
            IEnumerable <MethodBase> patchedMethods;

            lock (obj)
            {
                patchedMethods = HarmonySharedState.GetPatchedMethods();
            }

            return(patchedMethods);
        }
예제 #3
0
 /// <summary>Gets a patched methods</summary>
 /// <returns>An enumeration of original methods</returns>
 ///
 public IEnumerable <MethodBase> GetPatchedMethods()
 {
     return(HarmonySharedState.GetPatchedMethods());
 }
예제 #4
0
 /// <summary>Gets the methods this instance has patched</summary>
 /// <returns>An enumeration of original methods</returns>
 ///
 public IEnumerable <MethodBase> GetPatchedMethods()
 {
     return(HarmonySharedState.GetPatchedMethods()
            .Where(original => GetPatchInfo(original).Owners.Contains(Id)));
 }