UnlimitedHugs / RimworldHugsLib

A lightweight shared library for Rimworld modding.
Other
244 stars 59 forks source link

Include nested Types to Harmony Patch Log #68

Closed LecrisUT closed 4 years ago

LecrisUT commented 4 years ago

Simple implementation, hope the style is satisfactory. Here's an example log

UnlimitedHugs commented 4 years ago

Merged. Well, kind of. I decided to just go with a simple dot separator i.e.: <>c.<MakeNewToils>b__4_2 becomes JobDriver_Repair.<>c.<MakeNewToils>b__4_2. See the commit for details.

LecrisUT commented 4 years ago

Sure, I guess it's already apparent that anything after the parent type is a nested type or the method. There are some cases where it can become hard to decipher at 1st glance. E.g. JobDriver_AttackStatic.<MakeNewToils>d__4.System.Collections.IEnumerator.Reset. But I guess you can quickly decipher it once in the IL decompiler