Rewrite mod in c# using patches #1
|
@ -1,7 +0,0 @@
|
||||||
using System.Text.Json.Serialization;
|
|
||||||
|
|
||||||
namespace PoppingBottles;
|
|
||||||
|
|
||||||
public class Config {
|
|
||||||
[JsonInclude] public bool SomeSetting = true;
|
|
||||||
}
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue