From d577ddf04fc5cd7d9cd19f71d8e55511b962c734 Mon Sep 17 00:00:00 2001 From: Jerker Dahlblom Date: Sun, 26 Nov 2023 13:52:07 +0200 Subject: [PATCH] readme updated and VS tasks added (#48) --- .vscode/launch.json | 26 ++++++++++++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 69 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..583e4f8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/client/DCSInsight/bin/Debug/net6.0-windows/dcs-insight.dll", + "args": [], + "cwd": "${workspaceFolder}/src/client/DCSInsight", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..23c665a --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/client/DCSInsight/DCSInsight.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/client/DCSInsight/DCSInsight.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/src/client/DCSInsight/DCSInsight.sln" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 385fc96..934cbe4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Install server in ```Scripts``` folder and add entry to Export.lua. * You can poll an API for changes * You can search for API +``` * 1 : GetDevice(device_id):get_argument_value(argument_id) * 2 : GetDevice(device_id):set_argument_value(argument_id, new_value) * 3 : GetDevice(device_id):performClickableAction(command_id, argument_id) @@ -80,6 +81,7 @@ Install server in ```Scripts``` folder and add entry to Export.lua. * 58 : LoIsOwnshipExportAllowed() * 59 : LoIsObjectExportAllowed() * 60 : LoIsSensorExportAllowed() +``` ![insight1](https://github.com/DCS-Skunkworks/dcs-insight/assets/10453261/a99b72b9-b13b-4b3e-b35b-35188b907bd5)