The purpose of this library is simplify, generalize and centralize logic. (because some things can only be done once, like EnumExtension)
Depending on the feature the actual library may be required as a hard dependency:
To use the library simply add a project reference:
<ItemGroup> <PackageReference Include="TheInsanityGod.VintageStory.InsanityLib" Version="2.*" PrivateAssets="All" /> </ItemGroup>
Afterwards you should make your ModSystem class partial and call the generated methods:
AutoSetup
StartPre
AutoAssetsLoaded
AssetsLoaded
AutoDispose
Dispose
There was an error while loading. Please reload this page.