Skip to content

Commit

Permalink
Decided that ScriptTemplates should simply contain all templates, inc…
Browse files Browse the repository at this point in the history
…luding mods.
  • Loading branch information
malware-dev committed Jan 4, 2025
1 parent 445c181 commit 1e57585
Show file tree
Hide file tree
Showing 54 changed files with 16 additions and 750 deletions.
8 changes: 4 additions & 4 deletions Source/MDK-Complete.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@
</Project>
</Folder>
<Folder Name="/Templates/">
<Project Path="Templates\content\0_Script\PbScript.csproj">
<Project Path="ScriptTemplates\ScriptTemplates.csproj" Type="Classic C#" />
<Project Path="ScriptTemplates\content\0_Script\PbScript.csproj">
<Configuration Solution="Debug|x64" Project="Debug|x64" />
<Configuration Solution="Release|x64" Project="Release|x64" />
</Project>
<Project Path="Templates\content\1_Mod\ModProject.csproj">
<Project Path="ScriptTemplates\content\1_Mod\ModProject.csproj">
<Configuration Solution="Debug|x64" Project="Debug|x64" />
<Configuration Solution="Release|x64" Project="Release|x64" />
</Project>
<Project Path="Templates\content\2_Mixin\MixinProject.shproj">
<Project Path="ScriptTemplates\content\2_Mixin\MixinProject.shproj">
<Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
<Configuration Solution="Release|x64" Project="Release|Any CPU" />
</Project>
<Project Path="Templates\Templates.csproj" Type="Classic C#" />
</Folder>
<Project Path="Mdk.CheckDotNet\Mdk.CheckDotNet.csproj" Type="Classic C#">
<Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
Expand Down
50 changes: 0 additions & 50 deletions Source/ModTemplates/ModTemplates.csproj

This file was deleted.

1 change: 0 additions & 1 deletion Source/ModTemplates/PackageVersion.txt

This file was deleted.

17 changes: 0 additions & 17 deletions Source/ModTemplates/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions Source/ModTemplates/ReleaseNotes.txt

This file was deleted.

132 changes: 0 additions & 132 deletions Source/ModTemplates/UpdatePackageReferences.ps1

This file was deleted.

27 changes: 0 additions & 27 deletions Source/ModTemplates/content/0_Mod/ModProject.csproj

This file was deleted.

17 changes: 0 additions & 17 deletions Source/ModTemplates/description.txt

This file was deleted.

2 changes: 1 addition & 1 deletion Source/ScriptTemplates/PackageVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.22
2.1.0
4 changes: 2 additions & 2 deletions Source/ScriptTemplates/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This template sets up a project for scripting in Space Engineers using the MDK2 toolkits. It will automatically
add the required nuget packages.
These templates sets up projects for scripting or modding in Space Engineers using the MDK2 toolkits. It
will automatically add the required nuget packages.

Please remember that you need the Space Engineers game installed on your computer to use the MDK2 toolkits.

Expand Down
3 changes: 3 additions & 0 deletions Source/ScriptTemplates/ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v.2.1.0
- Added mod template. Renamed the mixin to MDK Mixin because it can be used for both mods and scripts.

v.2.0.22
- Updated the package versions in the template.

Expand Down
5 changes: 3 additions & 2 deletions Source/ScriptTemplates/UpdatePackageReferences.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$pbPackagerVersionFile = "../Mdk.CommandLine/PackageVersion.txt"
$referencesVersionFile = "../Mdk.References/PackageVersion.txt"
$pbAnalyzersVersionFile = "../Mdk.PbAnalyzers/PackageVersion.txt"
$modAnalyzersVersionFile = "../Mdk.ModAnalyzers/PackageVersion.txt"

# Path to the .csproj file (relative to the ScriptTemplates project)
$projectFile = "content/0_Script/PbScript.csproj"
Expand Down Expand Up @@ -41,8 +42,7 @@ function Update-PackageVersion {
$packageRef = $xml.Project.ItemGroup.PackageReference | Where-Object { $_.Include -eq $packageName }

if (-not $packageRef) {
Write-Host "Error: Package $packageName not found in the project file" -ForegroundColor Red
exit 1
return;
}

# Check if the version is different
Expand Down Expand Up @@ -121,6 +121,7 @@ $versionChanged = $false
$versionChanged = $versionChanged -or (Update-PackageVersion "Mal.Mdk2.PbPackager" $pbPackagerVersionFile)
$versionChanged = $versionChanged -or (Update-PackageVersion "Mal.Mdk2.References" $referencesVersionFile)
$versionChanged = $versionChanged -or (Update-PackageVersion "Mal.Mdk2.PbAnalyzers" $pbAnalyzersVersionFile)
$versionChanged = $versionChanged -or (Update-PackageVersion "Mal.Mdk2.ModAnalyzers" $modAnalyzersVersionFile)

# If any package versions were updated, bump this package's version and update release notes
if ($versionChanged) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "A script for the programmable block in the game Space Engineers by Keen Software House.",
"identity": "Mal.Mdk2.IngameScriptTemplate",
"shortName": "mdk2pbscript",
"defaultName": "Mdk.PbScript1",
"defaultName": "Mdk.PbScript",
"tags": {
"language": "C#",
"type": "project"
Expand Down

This file was deleted.

11 changes: 0 additions & 11 deletions Source/ScriptTemplates/content/1_Mixin/PbMixin.projitems

This file was deleted.

19 changes: 0 additions & 19 deletions Source/ScriptTemplates/content/1_Mixin/PbMixin.shproj

This file was deleted.

4 changes: 2 additions & 2 deletions Source/ScriptTemplates/description.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This template sets up a project for scripting in Space Engineers using the MDK2 toolkits. It will automatically
add the required nuget packages.
These templates sets up projects for scripting or modding in Space Engineers using the MDK2 toolkits. It
will automatically add the required nuget packages.

Please remember that you need the Space Engineers game installed on your computer to use the MDK2 toolkits.

Expand Down
1 change: 0 additions & 1 deletion Source/Templates/PackageVersion.txt

This file was deleted.

Loading

0 comments on commit 1e57585

Please sign in to comment.