Skip to content

Commit

Permalink
imp - Template pack moved to main Nitrocid project
Browse files Browse the repository at this point in the history
---

We've moved the template pack to the main Nitrocid project. We've also added a logo to make it more recognizable.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 19, 2024
1 parent 1f62781 commit e4f9227
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Nitrocid.sln
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Benchmarks", "Benchmarks",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nitrocid.Benchmarks", "private\Nitrocid.Benchmarks\Nitrocid.Benchmarks.csproj", "{32EFC1E5-CE9A-457D-BDC3-3EDE638DE5F3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Templates", "Templates", "{0F3600BA-D929-4E70-957D-71992819CE61}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "templatepack", "public\Nitrocid.Templates\templatepack.csproj", "{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -396,6 +400,10 @@ Global
{32EFC1E5-CE9A-457D-BDC3-3EDE638DE5F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32EFC1E5-CE9A-457D-BDC3-3EDE638DE5F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32EFC1E5-CE9A-457D-BDC3-3EDE638DE5F3}.Release|Any CPU.Build.0 = Release|Any CPU
{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -461,6 +469,8 @@ Global
{600337A5-0D56-476A-9428-52B1EF665950} = {B60F276A-FE12-4001-916E-080344ED1FD9}
{EA27625C-C2DE-4080-9253-A572114EDC21} = {61916ED1-66D6-4938-9F1A-D0DF38D16E20}
{32EFC1E5-CE9A-457D-BDC3-3EDE638DE5F3} = {EA27625C-C2DE-4080-9253-A572114EDC21}
{0F3600BA-D929-4E70-957D-71992819CE61} = {A32F9CED-BCDB-48A7-A42D-E98E33BD6E65}
{6F4FFE84-4F9B-474F-8FA4-A2DCCF5415C2} = {0F3600BA-D929-4E70-957D-71992819CE61}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {424D8E7A-CFEB-40AE-A79C-437D603177FD}
Expand Down
49 changes: 49 additions & 0 deletions public/Nitrocid.Templates/templatepack.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- KS NuGet Information -->
<PropertyGroup>
<PackageId>KS.Templates</PackageId>
<PackageType>Template</PackageType>
<PackageVersion>0.1.0</PackageVersion>
<Authors>Aptivi</Authors>
<Title>Nitrocid KS Templates</Title>
<Description>Simulates our future-planned kernel, Nitrocid Kernel. This package contains templates to use when creating N-KS mods, screensavers, and splashes</Description>
<PackageTags>dotnet-new;templats;ks;kernel;simulator</PackageTags>
<!-- URL settings -->
<PackageProjectUrl>https://github.com/Aptivi/NitrocidKS</PackageProjectUrl>
<PackageIcon>OfficialAppIcon-KernelSimulator-512.png</PackageIcon>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<PackageReleaseNotes>Detailed explanation: https://aptivi.gitbook.io/nitrocid-ks-manual/versions-and-compatibility/version-release-notes/v0.1.x.x-series</PackageReleaseNotes>
<!-- MSBuild Tags -->
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>../Nitrocid/KSBuild</PackageOutputPath>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- Repository set up -->
<RepositoryUrl>https://github.com/Aptivi/NitrocidKS.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- KS NuGet Information End -->

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<NoDefaultExcludes>true</NoDefaultExcludes>
</PropertyGroup>

<ItemGroup>
<Content Include="templates\**\*" Exclude="templates\**\bin\**;templates\**\obj\**" />
<Compile Remove="**\*" />
</ItemGroup>

<!-- KS Package Files -->
<ItemGroup>
<None Include="..\..\public\Nitrocid\OfficialAppIcon-KernelSimulator-512.png" Pack="true" PackagePath="\" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<!-- KS Package Files End -->

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Aptivi",
"classifications": [ "Library" ],
"identity": "KSMod",
"name": "Nitrocid KS Mod",
"shortName": "KSMod",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "KSMod",
"preferNameDirectory": true
}
12 changes: 12 additions & 0 deletions public/Nitrocid.Templates/templates/KSMod/Command.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Nitrocid.Shell.ShellBase.Commands;

namespace KSMod
{
internal class TuiCommand : BaseCommand, ICommand
{
public override int Execute(CommandParameters parameters, ref string variableValue)
{
return 0;
}
}
}
11 changes: 11 additions & 0 deletions public/Nitrocid.Templates/templates/KSMod/KSMod.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KS" Version="0.1.0-rc" />
</ItemGroup>

</Project>
35 changes: 35 additions & 0 deletions public/Nitrocid.Templates/templates/KSMod/ModName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using Nitrocid.Modifications;
using System;
using System.Collections.ObjectModel;
using System.Reflection;

namespace KSMod
{
public class ModName : IMod
{
public string Name { get; set; } = "My Mod";
public string Version { get; set; } = "1.0.0";

public Version MinimumSupportedApiVersion => new(3, 0, 25, 411);

public ReadOnlyDictionary<string, Delegate> PubliclyAvailableFunctions => null;

public ReadOnlyDictionary<string, PropertyInfo> PubliclyAvailableProperties => null;

public ReadOnlyDictionary<string, FieldInfo> PubliclyAvailableFields => null;

public ModLoadPriority LoadPriority => ModLoadPriority.Optional;

public void StartMod()
{

}

public void StopMod()
{

}
}
}

// Refer to https://aptivi.github.io/Kernel-Simulator for up-to-date API documentation for mod developers.

0 comments on commit e4f9227

Please sign in to comment.