-
Notifications
You must be signed in to change notification settings - Fork 3
Tricks
aquafir edited this page Nov 17, 2023
·
1 revision
To export a used package to the Mod folder add (or enable) CopyLocalLockFileAssemblies
in the mod's .csproj:
<PropertyGroup>
...
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
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>
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.