-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp - Template pack moved to main Nitrocid project
--- 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
Showing
6 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
14 changes: 14 additions & 0 deletions
14
public/Nitrocid.Templates/templates/KSMod/.template.config/template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |