Files
SPT-Server-Build/ModExamples/12Bundle/Bundle.cs
T
2025-02-10 20:38:12 +00:00

29 lines
682 B
C#

using System.Reflection;
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()
{
// must be a relative path.
// for example "./user/mods/Mod3"
// . being the server.exe or root directory
// follow all the way to your mods folder name
// you will be only changing from "./user/mods/" onwards
_bundleLoader.AddBundles("./user/mods/Mod3");
}
}