Rewrite mod in c# using patches #1

Merged
uncreativecultist merged 4 commits from x8c8r/PoppingBottles:main into main 2024-11-03 13:45:03 -05:00
2 changed files with 0 additions and 9 deletions
Showing only changes of commit 08f4e3ec6d - Show all commits

View File

@ -1,7 +0,0 @@
using System.Text.Json.Serialization;
namespace PoppingBottles;
public class Config {
[JsonInclude] public bool SomeSetting = true;
}

View File

@ -6,10 +6,8 @@ using GDWeave.Modding;
namespace PoppingBottles; namespace PoppingBottles;
public class Mod : IMod { public class Mod : IMod {
public Config Config;
public Mod(IModInterface modInterface) { public Mod(IModInterface modInterface) {
this.Config = modInterface.ReadConfig<Config>();
modInterface.Logger.Information("Loaded PoppingBottles!"); modInterface.Logger.Information("Loaded PoppingBottles!");
modInterface.RegisterScriptMod(new Patch()); modInterface.RegisterScriptMod(new Patch());