__original variable contains the patched method's MethodInfo instance.
This allows you to patch multiple arbitrary methods in one go while identifying them and giving them different behaviors on the fly. For example this feature will enable one of my plugins to optimize the game by patching the game's simulate/update methods specified in user config.
Originally written by zznty; cherrypicked from his private repo. Tested with my own plugin in development.
__original
variable contains the patched method'sMethodInfo
instance.This allows you to patch multiple arbitrary methods in one go while identifying them and giving them different behaviors on the fly. For example this feature will enable one of my plugins to optimize the game by patching the game's simulate/update methods specified in user config.