falseto indicate Harmony should skip this patch.
ref "Type" __resultarguement by reference. This will make it look like the original method is returning whatever
__resultis set to
__state. You can use
outto set the
__stateto whatever value or type you want. If you need to store more data then you need to make your own object to pass on to the Postfix
__resultfrom the original method and use it or even change it.
__instanceto access the instance value if original method is not static
__resultto access the returned value (prefixes get default value)
__stateto store information in the prefix method that can be accessed again in the postfix method. Think of it as a local variable. It can be any type and you are responsible to initialize its value in the prefix
___someField, can be used to read and write (with 'ref') private fields on the instance that has the same name (minus the underscores)
IEnumerable<CodeInstruction>that will be used to pass the IL codes to it
Assembly.GetExecutingAssembly()to try and patch it but these days it will look there by default.
Destroy()the mod object when unloading but that is also handled gracefully these days.