Update Mods to be foldered/ own csproj/ ref dll
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Core.Loaders;
|
||||
using Core.Models.External;
|
||||
using SptCommon.Annotations;
|
||||
|
||||
namespace _12Bundle;
|
||||
|
||||
[Injectable]
|
||||
public class Bundle : IPostDBLoadMod
|
||||
{
|
||||
private readonly BundleLoader _bundleLoader;
|
||||
|
||||
|
||||
public Bundle(
|
||||
BundleLoader bundleLoader)
|
||||
{
|
||||
_bundleLoader = bundleLoader;
|
||||
}
|
||||
|
||||
public void PostDBLoad()
|
||||
{
|
||||
var modFolder = Directory.GetCurrentDirectory();
|
||||
_bundleLoader.AddBundles(modFolder);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user