Skip to content
TheInsanityGod edited this page Sep 20, 2026 · 18 revisions

Welcome to the InsanityLib wiki!

The purpose of this library is simplify, generalize and centralize logic. (because some things can only be done once, like EnumExtension)

Dependency

Depending on the feature the actual library may be required as a hard dependency:

  • [Hard Dependency] (requires InsanityLib present to work)
  • [Soft Dependency] (basic functionality will work regardless but full functionallity requires InsanityLib present)
  • [No Dependency] (works entirely without InsanityLib present)

Usage / Setup

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 in StartPre
  • AutoAssetsLoaded in AssetsLoaded
  • AutoDispose in Dispose

Planned Features

Clone this wiki locally