Harmony Patching: Difference between revisions

From Vintage Story Wiki
No edit summary
(Redirected page to Modding:Monkey patching)
Tags: New redirect Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Harmony is a library for patching, replacing and decorating .NET and Mono methods during runtime. It ships with the game and gives modders a much greater degree of freedom, which however comes at the cost of reduced game update resistance and mod compatibility. Due do that fact it is recommended to avoid Harmony where possible, but sometimes it is the only way to make necessary code changes for a mod to work. If you need a new hook in the vanilla game, feel free to [https://github.com/anegostudios/VintageStory-Issues/issues/218 suggest one on github]
#REDIRECT [[Modding:Monkey_patching]]
 
Code samples for Vintage Story specifically are still missing here, but until then, you can refer to the [https://harmony.pardeike.net/articles/intro.html official documentation]

Latest revision as of 01:03, 23 February 2022