add support for userdev launch in ide
All checks were successful
Build / Compute Version (push) Successful in 8s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m5s
Build / Build Nuget package (NuGet) (push) Successful in 4m8s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m9s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m30s
Build / Build Launcher (push) Successful in 5m22s
All checks were successful
Build / Compute Version (push) Successful in 8s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m5s
Build / Build Nuget package (NuGet) (push) Successful in 4m8s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m9s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m30s
Build / Build Launcher (push) Successful in 5m22s
add template for user plugins
This commit is contained in:
27
CringePlugins.Templates/CringePlugins.Templates.csproj
Normal file
27
CringePlugins.Templates/CringePlugins.Templates.csproj
Normal file
@@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<IncludeBuildOutput>False</IncludeBuildOutput>
|
||||
<IncludeSource>False</IncludeSource>
|
||||
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
||||
<OutputPath>$(ArtifactsTmpDir)</OutputPath>
|
||||
<EnableDefaultItems>False</EnableDefaultItems>
|
||||
<IsPackable>true</IsPackable>
|
||||
<IsShipping>true</IsShipping>
|
||||
<IsShippingPackage>true</IsShippingPackage>
|
||||
<NoWarn>2008;NU5105</NoWarn>
|
||||
<NoPackageAnalysis>true</NoPackageAnalysis>
|
||||
<PackageType>Template</PackageType>
|
||||
<SuppressDependenciesWhenPacking>True</SuppressDependenciesWhenPacking>
|
||||
<Version>1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Remove="Microsoft.NETCore.App" />
|
||||
<Content Include="content\**">
|
||||
<PackagePath>content</PackagePath>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@@ -0,0 +1,32 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||
<RestoreAdditionalProjectSources>https://ng.zznty.ru/v3/index.json</RestoreAdditionalProjectSources>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<PackageType>CringePlugin</PackageType>
|
||||
<Authors>CringeLauncher</Authors>
|
||||
<PackageId>Plugin.$projectName$</PackageId>
|
||||
<AssemblyName>Plugin.$projectName$</AssemblyName>
|
||||
<Title>TitlePlaceholder</Title>
|
||||
<Description>DescriptionPlaceholder</Description>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<PackageIcon>icon.png</PackageIcon>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CringePlugins" Version="*" ExcludeAssets="runtime; native" />
|
||||
<PackageReference Include="CringePlugins.MSBuild" Version="*" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="icon.png" Pack="true" PackagePath="" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/template",
|
||||
"author": "zznty",
|
||||
"classifications": [ "CringeLauncher", "SpaceEngineers", "Plugin" ],
|
||||
"identity": "CringePlugins.PluginTemplate.Plugin",
|
||||
"name": "SpaceEngineers Plugin Template",
|
||||
"shortName": "cringeplugin",
|
||||
"tags": {
|
||||
"language": "C#",
|
||||
"type": "project"
|
||||
},
|
||||
"defaultName": "Plugin",
|
||||
"sourceName": "$projectName$",
|
||||
"postActions": [],
|
||||
"symbols": {
|
||||
"title": {
|
||||
"type": "parameter",
|
||||
"defaultValue": "Test Plugin",
|
||||
"description": "The title of the plugin",
|
||||
"replaces": "TitlePlaceholder"
|
||||
},
|
||||
"description": {
|
||||
"type": "parameter",
|
||||
"defaultValue": "This is a test plugin",
|
||||
"description": "The description of the plugin",
|
||||
"replaces": "DescriptionPlaceholder"
|
||||
}
|
||||
}
|
||||
}
|
18
CringePlugins.Templates/content/templates/Plugin/Plugin.cs
Normal file
18
CringePlugins.Templates/content/templates/Plugin/Plugin.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using VRage.Plugins;
|
||||
|
||||
namespace $projectName$;
|
||||
|
||||
public class Plugin : IPlugin
|
||||
{
|
||||
public void Init(object gameInstance)
|
||||
{
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
}
|
BIN
CringePlugins.Templates/content/templates/Plugin/icon.png
Normal file
BIN
CringePlugins.Templates/content/templates/Plugin/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
Reference in New Issue
Block a user