Skip to content
aquafir edited this page Nov 17, 2023 · 1 revision

Nuget Packages

To export a used package to the Mod folder add (or enable) CopyLocalLockFileAssemblies in the mod's .csproj:

	<PropertyGroup>
        ...
		<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
	</PropertyGroup>

Publicizer

To get access to inaccessible members of ACE add the Krafs.Publicizer Nuget package. Then add something like this to the mod's .csproj:

	<PropertyGroup>
		<PublicizeAll>true</PublicizeAll>
	</PropertyGroup>

Categories

To selectively patch methods use Harmony.PatchCategory(categoryName) on startup:

        if (Settings.EnableOnAttackForNonAetheria)
            Mod.Harmony.PatchCategory(Settings.OnAttackCategory);

Nothing should be needed when shutting down.

Clone this wiki locally