Stubbed out bundle loading
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"manifest": [
|
||||
{
|
||||
"key": "assets/content/weapons/usable_items/item_bottle/textures/client_assets.bundle",
|
||||
"dependencyKeys": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user