diff --git a/.vscode/build.bat b/.vscode/build.bat index cb21c5f..3b6dd17 100644 --- a/.vscode/build.bat +++ b/.vscode/build.bat @@ -1,7 +1,7 @@ echo off REM remove unnecessary assemblies -DEL .\*\Assemblies\*.* +REM DEL .\*\Assemblies\*.* REM build dll dotnet build .vscode \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 6cd389a..cb53114 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,11 +10,25 @@ "request": "launch", "preLaunchTask": "build dll", "args": [], - "program": "../../RimWorldWin64.exe", + "program": "../../RimWorldWin64.exe", "cwd": "${workspaceFolder}", "console": "internalConsole", "internalConsoleOptions":"neverOpen", "stopAtEntry": true }, + + { // ignore + "name": ".NET Framework Attach", + "type": "clr", + "request": "attach", + "processId": "${command:pickProcess}", + "symbolOptions": { + "searchPaths": [ + ".vscode/obj/Debug/*" + ], + "searchMicrosoftSymbolServer": false, + "searchNuGetOrgSymbolServer": false + } + } ] } \ No newline at end of file diff --git a/.vscode/mod.csproj b/.vscode/mod.csproj index 0f86931..c2d0f83 100644 --- a/.vscode/mod.csproj +++ b/.vscode/mod.csproj @@ -7,10 +7,12 @@ Template Template - ../1.1/Assemblies + ../1.2/Assemblies 1.0.0.0 + none + false false @@ -25,10 +27,8 @@ - + --> diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1d80d19..1241df7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,7 +8,8 @@ "kind": "build", "isDefault": true }, - "command": ".vscode/build.bat", + // "command": ".vscode/build.bat", + "command": "dotnet build .vscode" }, ] } \ No newline at end of file diff --git a/1.2/Assemblies/Template.dll b/1.2/Assemblies/Template.dll new file mode 100644 index 0000000..34ff51b Binary files /dev/null and b/1.2/Assemblies/Template.dll differ diff --git a/1.1/Defs/LetterDef.xml b/1.2/Defs/LetterDef.xml similarity index 100% rename from 1.1/Defs/LetterDef.xml rename to 1.2/Defs/LetterDef.xml diff --git a/1.1/Languages/English/Data.xml b/1.2/Languages/English/Data.xml similarity index 100% rename from 1.1/Languages/English/Data.xml rename to 1.2/Languages/English/Data.xml diff --git a/1.1/Patches/Patches.xml b/1.2/Patches/Patches.xml similarity index 100% rename from 1.1/Patches/Patches.xml rename to 1.2/Patches/Patches.xml diff --git a/About/About.xml b/About/About.xml index 48c7618..7eeed31 100644 --- a/About/About.xml +++ b/About/About.xml @@ -3,8 +3,8 @@ Arvkus Mod Template Arvkus -
  • 1.1
  • +
  • 1.2
  • - Arvkus.Rimworld.ModTemplate + Arvkus.Rimworld.ModTemplate2 Template \ No newline at end of file diff --git a/Source/Main.cs b/Source/Main.cs index 94caba6..918be50 100644 --- a/Source/Main.cs +++ b/Source/Main.cs @@ -25,25 +25,23 @@ 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) - { - } - + public MyMapComponent(Map map) : base(map){} public override void FinalizeInit() { Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent); Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null); } } + + [StaticConstructorOnStartup] + public static class Start + { + static Start() // quick debug + { + Log.Message("Mod init"); + } + } + }