-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extra attributes for patching patching convenience (#388)
Changes/additions: - Created `MpCompatAttributes` file - Moved `MpCompatFor` and `MpCompatRequireMod` attributes to the new file to keep all attributes together - Added abstract `MpCompatPatch` attribute with subclasses `MpCompat(Prefix/Postfix/Transpiler/Finalizer)` for convenience of patching (they are based on equivalent attributes from Multiplayer, with some additions and inclusion of the finalizer) - Added `MpCompatSync(Method/Field/Worker)` attributes for convenience of registering them - Added static class `MpCompatPatchLoader` which `LoadPatch` method that will go through all methods/fields in a single type and apply Harmony patches and register Multiplayer sync methods/fields/workers marked by the earlier mentioned attributes - Modified Simple Sidearms and Vanilla Factions Expanded - Ancients patches to use those new features, presenting an example usage
- Loading branch information
1 parent
e68f642
commit 379d87f
Showing
5 changed files
with
506 additions
and
78 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
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
Oops, something went wrong.