Sample mod project and modding bootstrap

This commit is contained in:
Alex
2025-01-10 23:42:41 +00:00
parent b62cf73086
commit ba78a15613
8 changed files with 109 additions and 6 deletions
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>
</Project>
+26
View File
@@ -0,0 +1,26 @@
using Core.Annotations;
using Core.Models.Utils;
using Core.Servers;
using Core.Services;
using Core.Utils;
namespace ExampleOverrideMod;
[Injectable(InjectableTypeOverride = typeof(Watermark))]
public class WatermarkOverride : Watermark
{
public WatermarkOverride(
ILogger logger,
ConfigServer configServer,
LocalisationService localisationService,
WatermarkLocale watermarkLocale
) : base(logger, configServer, localisationService, watermarkLocale)
{
}
public override void Initialize()
{
Console.WriteLine("This is a watermark mod override!");
base.Initialize();
}
}