Update Mods to be foldered/ own csproj/ ref dll
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<RootNamespace>_12Bundle</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- TODO: Change to Nuget Package -->
|
||||
<ItemGroup>
|
||||
<Reference Include="Core">
|
||||
<HintPath>..\TempReferences\Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SptCommon">
|
||||
<HintPath>..\TempReferences\SptCommon.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SptDependencyInjection">
|
||||
<HintPath>..\TempReferences\SptDependencyInjection.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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": true,
|
||||
"Author": "SPT",
|
||||
"Contributors": [],
|
||||
"Licence": "MIT"
|
||||
}
|
||||
Reference in New Issue
Block a user