From daeaf1c8e801dda668997eb4a1c68b15bd011612 Mon Sep 17 00:00:00 2001 From: Gareth Date: Fri, 10 May 2024 18:18:32 +0100 Subject: [PATCH 1/2] Make the template more modular --- .../.template.config/template.json | 83 +++++++++++++++++-- 1 file changed, 75 insertions(+), 8 deletions(-) diff --git a/src/dotnet/ReSharperPlugin.RimworldDev/ProjectTemplates/RimworldProjectTemplate/.template.config/template.json b/src/dotnet/ReSharperPlugin.RimworldDev/ProjectTemplates/RimworldProjectTemplate/.template.config/template.json index 2120b9e..7e55cd6 100644 --- a/src/dotnet/ReSharperPlugin.RimworldDev/ProjectTemplates/RimworldProjectTemplate/.template.config/template.json +++ b/src/dotnet/ReSharperPlugin.RimworldDev/ProjectTemplates/RimworldProjectTemplate/.template.config/template.json @@ -41,6 +41,38 @@ "isRequired": "false", "defaultValue": "" }, + "PublisherPlus": { + "type": "parameter", + "datatype": "bool", + "displayName": "Include a PublisherPlus config", + "description": "If enabled, a PublisherPlus config file will be included in the mod", + "isRequired": "false", + "defaultValue": "true" + }, + "CSharp": { + "type": "parameter", + "datatype": "bool", + "displayName": "Add a C# Project and Sources", + "description": "If enabled, this mod will be created with a .sln file, Sources folder and a csproj file", + "isRequired": "false", + "defaultValue": "true" + }, + "XML": { + "type": "parameter", + "datatype": "bool", + "displayName": "Add a Defs folder with a starting XML file", + "description": "If enabled, this mod will be created with a Defs folder and a starting XML file", + "isRequired": "false", + "defaultValue": "true" + }, + "Languages": { + "type": "parameter", + "datatype": "bool", + "displayName": "Add a Languages folder", + "description": "If enabled, this mod will be created with a Languages folder with a starting English.xml file", + "isRequired": "false", + "defaultValue": "true" + }, "AssemblyDir": { "type": "derived", "valueSource": "RimworldDLL", @@ -64,11 +96,22 @@ { "type": "conditional", "configuration": { - "if": [ "