-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from amazingalek/raicuparta/patch-via-methodinfo
Allow patching by providing MethodInfo
- Loading branch information
Showing
3 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
using System; | ||
using System.Reflection; | ||
|
||
namespace OWML.Common | ||
{ | ||
public interface IHarmonyHelper | ||
{ | ||
void AddPrefix<T>(string methodName, Type patchType, string patchMethodName); | ||
void AddPrefix(MethodInfo methodInfo, Type patchType, string patchMethodName); | ||
void AddPostfix<T>(string methodName, Type patchType, string patchMethodName); | ||
void AddPostfix(MethodInfo methodInfo, Type patchType, string patchMethodName); | ||
void EmptyMethod<T>(string methodName); | ||
void EmptyMethod(MethodInfo methodInfo); | ||
void Transpile<T>(string methodName, Type patchType, string patchMethodName); | ||
void Transpile(MethodInfo methodInfo, Type patchType, string patchMethodName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters