Stubbed out bundle loading

This commit is contained in:
Chomp
2025-02-08 15:22:25 +00:00
parent 316714db22
commit 98041ac785
10 changed files with 276 additions and 8 deletions
+4
View File
@@ -26,4 +26,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Mods\12Bundle\bundles\assets\" />
</ItemGroup>
</Project>
@@ -5,13 +5,13 @@ using SptCommon.Annotations;
namespace ExampleMods.Mods._11RegisterClassesInDI;
[Injectable]
public class RegisterClassesInDI : IPostDBLoadMod // Run after db has loaded
public class Bundle : IPostDBLoadMod // Run after db has loaded
{
private readonly SingletonClassExample _singletonClassExample;
private readonly TransientClassExample _transientClassExample;
// We inject 2 classes (singleton and transient) we've made below
public RegisterClassesInDI(
public Bundle(
SingletonClassExample singletonClassExample,
TransientClassExample transientClassExample)
{
+19
View File
@@ -0,0 +1,19 @@
using Core.Models.External;
using Core.Models.Utils;
using SptCommon.Annotations;
namespace ExampleMods.Mods._12Bundle;
[Injectable]
public class Bundle : IPostDBLoadMod // Run after db has loaded
{
public Bundle()
{
}
public void PostDBLoad()
{
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"manifest": [
{
"key": "assets/content/weapons/usable_items/item_bottle/textures/client_assets.bundle",
"dependencyKeys": []
}
]
}
+13
View File
@@ -0,0 +1,13 @@
{
"Name": "12Bundle",
"Version": "1.0.0",
"SptVersion": "~4.0",
"LoadBefore": [],
"LoadAfter": [],
"IncompatibileMods": [],
"Url": "https://github.com/sp-tarkov/server-csharp/tree/develop/ExampleMods/Mods",
"IsBundleMod": false,
"Author": "SPT",
"Contributors": [],
"Licence": "MIT"
}