diff --git a/SamplePlugin.sln b/SamplePlugin.sln new file mode 100644 index 0000000..30e55a1 --- /dev/null +++ b/SamplePlugin.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34309.116 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SamplePlugin", "SamplePlugin\SamplePlugin.csproj", "{E7663FF2-F604-47CE-B855-189BA07CB958}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E7663FF2-F604-47CE-B855-189BA07CB958}.Debug|x86.ActiveCfg = Debug|x86 + {E7663FF2-F604-47CE-B855-189BA07CB958}.Debug|x86.Build.0 = Debug|x86 + {E7663FF2-F604-47CE-B855-189BA07CB958}.Release|x86.ActiveCfg = Release|x86 + {E7663FF2-F604-47CE-B855-189BA07CB958}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B094E2A4-1FAE-4D0E-B919-88BDDF76D013} + EndGlobalSection +EndGlobal diff --git a/SamplePlugin/Plugin.cs b/SamplePlugin/Plugin.cs new file mode 100644 index 0000000..a651c02 --- /dev/null +++ b/SamplePlugin/Plugin.cs @@ -0,0 +1,16 @@ +using Pilz.Plugins.Advanced; +using SM64RomManager.Plugins; + +namespace SamplePlugin +{ + public class Plugin : IRMPlugin + { + public string Name => "Sample Plugin"; + + public Plugin() + { + // Register all features + PluginFeatureController.Instance.RegisterAllOwn(); + } + } +} diff --git a/SamplePlugin/SampleFunction.cs b/SamplePlugin/SampleFunction.cs new file mode 100644 index 0000000..f539792 --- /dev/null +++ b/SamplePlugin/SampleFunction.cs @@ -0,0 +1,23 @@ +using Pilz.Plugins.Advanced; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SamplePlugin +{ + internal class SampleFunction : PluginFunction, IPluginFeatureProvider + { + public static SampleFunction Instance { get; } = new(); + + public SampleFunction() : base() + { + } + + protected override object? ExecuteFunction(PluginFunctionParameter? @params) + { + throw new NotImplementedException(); + } + } +} diff --git a/SamplePlugin/SampleModule.cs b/SamplePlugin/SampleModule.cs new file mode 100644 index 0000000..a2e1ea9 --- /dev/null +++ b/SamplePlugin/SampleModule.cs @@ -0,0 +1,25 @@ +using Pilz.Plugins.Advanced; +using Pilz.Plugins.Advanced.UI.Telerik; +using SM64RomManager.Main; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SamplePlugin +{ + internal class SampleModule : RMModule, IPluginFeatureProvider + { + public static SampleModule Instance { get; } = new(); + + public SampleModule() : base() + { + } + + protected override PluginModuleUI CreateNewUI() + { + throw new NotImplementedException(); + } + } +} diff --git a/SamplePlugin/SamplePlugin.csproj b/SamplePlugin/SamplePlugin.csproj new file mode 100644 index 0000000..b91bfa2 --- /dev/null +++ b/SamplePlugin/SamplePlugin.csproj @@ -0,0 +1,46 @@ + + + + Pilzinsel64 + 1.0.0.0 + + + + net8.0-windows + x86 + enable + enable + false + false + + + + true + true + + + + $(SM64RMLibPath)\ + + + + + false + + + false + + + false + + + + + + + + + + + + diff --git a/SamplePlugin/packages.lock.json b/SamplePlugin/packages.lock.json new file mode 100644 index 0000000..a7eef67 --- /dev/null +++ b/SamplePlugin/packages.lock.json @@ -0,0 +1,66 @@ +{ + "version": 1, + "dependencies": { + "net8.0-windows7.0": { + "Pilz.Plugins": { + "type": "Direct", + "requested": "[2.1.9, )", + "resolved": "2.1.9", + "contentHash": "FnjujEtPKkMoTlX/BUUUB/o4k3soTWEj+A4/W487HBIM7ITArIIvQamiWA1OaUv9L7HjspNGhoMtsYnFwn5tag==" + }, + "Pilz.Plugins.Advanced": { + "type": "Direct", + "requested": "[2.7.3, )", + "resolved": "2.7.3", + "contentHash": "HECFPjvqxzH4hU6Bhy/WlOoteTQaVd1yKC4DayUyFQY5s4AHv/1BwXzP4pZzzWQ47e4B9cmnQsGVIPg1NrtrMw==" + }, + "Pilz.Plugins.Advanced.UI.Telerik": { + "type": "Direct", + "requested": "[1.1.0, )", + "resolved": "1.1.0", + "contentHash": "q1FCqSPpu6gmDXwgjwG9UYWCyIk42LH26yxTGSXkX1aqTPiYMUOXfbMDP+Dgi3cS0MctLuuLNpV1ic3fJqhKrg==", + "dependencies": { + "Pilz.Plugins.Advanced.UI": "1.0.0", + "Pilz.UI.Telerik": "2.1.0", + "Pilz.UI.Telerik.SymbolFactory": "2.0.1" + } + }, + "Pilz.UI.Telerik": { + "type": "Direct", + "requested": "[2.1.0, )", + "resolved": "2.1.0", + "contentHash": "KlD5j9eSWn2+nZNkBSP1UswIVYAKBXAPFZIGFVgaq5eupT6OOrfwnBjjeMLHDunRSuRy9Up+y6bYn4V4lFMvEA==" + }, + "Pilz.UI.Telerik.SymbolFactory": { + "type": "Direct", + "requested": "[2.0.1, )", + "resolved": "2.0.1", + "contentHash": "nibC2LLSHUupARlbSEV7I5s7YzUfj0yufyBkIaTY9qaTqovFgBclD0nItYqUU6Ks5xexWHoObk1LVBYMDfadFQ==", + "dependencies": { + "System.Drawing.Common": "8.0.0" + } + }, + "Microsoft.Win32.SystemEvents": { + "type": "Transitive", + "resolved": "8.0.0", + "contentHash": "9opKRyOKMCi2xJ7Bj7kxtZ1r9vbzosMvRrdEhVhDz8j8MoBGgB+WmC94yH839NPH+BclAjtQ/pyagvi/8gDLkw==" + }, + "Pilz.Plugins.Advanced.UI": { + "type": "Transitive", + "resolved": "1.0.0", + "contentHash": "B/aFJ6ihjos1xSC/GrgICOSUaqG746gLelP54GAhwpwjwGBusr5bo05L0UZ0M78VZpY1+5njaFyzLHmF7Rni3g==", + "dependencies": { + "Pilz.Plugins.Advanced": "2.7.0" + } + }, + "System.Drawing.Common": { + "type": "Transitive", + "resolved": "8.0.0", + "contentHash": "JkbHJjtI/dWc5dfmEdJlbe3VwgZqCkZRtfuWFh5GOv0f+gGCfBtzMpIVkmdkj2AObO9y+oiOi81UGwH3aBYuqA==", + "dependencies": { + "Microsoft.Win32.SystemEvents": "8.0.0" + } + } + } + } +} \ No newline at end of file