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

add template for user plugins
This commit is contained in:
zznty
2025-07-07 02:44:02 +07:00
parent 7c236355d4
commit f238b52f95
16 changed files with 782 additions and 35 deletions

View File

@@ -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>

View File

@@ -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"
}
}
}

View 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()
{
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB