Files
SPT-Server-Build/ExampleMods/Mods/12Bundle/Bundle.cs
T
2025-02-08 21:35:28 +00:00

25 lines
473 B
C#

using Core.Loaders;
using Core.Models.External;
using SptCommon.Annotations;
namespace ExampleMods.Mods._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);
}
}