Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Auxiliary Methods - Attribute spelling. Sentence structure. #557

Merged
merged 1 commit into from Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Harmony/Documentation/articles/patching-auxiliary.md
Expand Up @@ -2,7 +2,7 @@

## Auxiliary patch methods

If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods that should be patched.
If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods should be patched.

Each of those methods can take up to three optional arguments that are injected by type so you can call them anything you like:

Expand Down Expand Up @@ -51,7 +51,7 @@ If you want to patch multiple methods with the same patch, you can use `TargetMe
```csharp
static IEnumerable<MethodBase> TargetMethods(...)
// or
[HarmonyTargetMethod]
[HarmonyTargetMethods]
static IEnumerable<MethodBase> CalculateMethods(...)
```

Expand Down