Use GetExportedTypes() instead of GetTypes()
Reasons:
- The game does use
GetExportedTypes() every time it loads an assembly so using GetExportedTypes() is harmless
- calling
GetTypes() makes NExt2 incompatible with mods that have direct references to other mods (not only harmony)
- avoiding direct references in private types is hard because sometimes the compiler creates hidden private types.
Use
GetExportedTypes()instead ofGetTypes()Reasons:
GetExportedTypes()every time it loads an assembly so usingGetExportedTypes()is harmlessGetTypes()makes NExt2 incompatible with mods that have direct references to other mods (not only harmony)