Files
LabApiPluginTemplate/.template.config/template.json
T
2026-08-27 00:26:47 +02:00

51 lines
1.5 KiB
JSON

{
"$schema": "http://json.schemastore.org/template",
"classifications": [ "Common", "Library", "SCP:SL", "LabAPI", "Game Plugin" ],
"identity": "SCPSL.LabApi.PluginTemplate",
"name": "SCP: Secret Laboratory LabAPI Plugin",
"shortName": "labapi-plugin",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "LabApiPluginTemplate",
"preferNameDirectory": true,
"symbols": {
"PluginAuthor": {
"type": "parameter",
"datatype": "string",
"defaultValue": "YourName",
"replaces": "YourName",
"description": "Name used as the plugin's author (EntryPoint's Author property)."
},
"SkipGit": {
"type": "parameter",
"datatype": "bool",
"description": "If set, skips printing the reminder to initialize a git repository.",
"defaultValue": "false"
}
},
"primaryOutputs": [
{ "path": "LabApiPluginTemplate.csproj" }
],
"postActions": [
{
"description": "Restores the NuGet packages required by this project (including LabAPI).",
"manualInstructions": [
{ "text": "Run 'dotnet restore'" }
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
},
{
"condition": "(!SkipGit)",
"description": "This project is not a git repository yet.",
"manualInstructions": [
{ "text": "Run 'git init && git add -A && git commit -m \"Initial commit\"'" }
],
"actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C",
"continueOnError": true
}
]
}