From 4abc55ad972469e25eb311ce5e46b926b46b6d55 Mon Sep 17 00:00:00 2001 From: Arvkus Date: Tue, 28 Jul 2020 10:48:26 +0300 Subject: [PATCH] harmony & patches --- .vscode/build.sh | 0 1.1/Patches/Patches.xml | 3 +++ Source/Main.cs | 9 +++++++++ Source/Mod.csproj | 5 ++++- 4 files changed, 16 insertions(+), 1 deletion(-) delete mode 100644 .vscode/build.sh create mode 100644 1.1/Patches/Patches.xml diff --git a/.vscode/build.sh b/.vscode/build.sh deleted file mode 100644 index e69de29..0000000 diff --git a/1.1/Patches/Patches.xml b/1.1/Patches/Patches.xml new file mode 100644 index 0000000..1646ae9 --- /dev/null +++ b/1.1/Patches/Patches.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Source/Main.cs b/Source/Main.cs index 4b01d1b..94caba6 100644 --- a/Source/Main.cs +++ b/Source/Main.cs @@ -25,6 +25,15 @@ namespace Template public static LetterDef success_letter; } + [StaticConstructorOnStartup] + public static class Start + { + static Start() + { + Log.Message("Mod template: success"); + } + } + public class MyMapComponent : MapComponent { public MyMapComponent(Map map) : base(map) diff --git a/Source/Mod.csproj b/Source/Mod.csproj index 8592695..ef78131 100644 --- a/Source/Mod.csproj +++ b/Source/Mod.csproj @@ -8,10 +8,13 @@ Template Template ../1.1/Assemblies - + none false false + false + +