File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 11
11
<PackageIcon >Icon512.png</PackageIcon >
12
12
<IncludeSymbols >true</IncludeSymbols >
13
13
<SymbolPackageFormat >snupkg</SymbolPackageFormat >
14
+ <Description >OpenShock Desktop Module Framework Base. Install to make a module for OpenShock Desktop</Description >
14
15
</PropertyGroup >
15
16
16
17
<ItemGroup >
17
- <None Include =" .. \README.md" Pack =" true" PackagePath =" \" />
18
+ <None Include =" .\README.md" Pack =" true" PackagePath =" \" />
18
19
<None Include =" ..\Desktop\wwwroot\images\Icon512.png" Pack =" true" PackagePath =" $(PackageIcon)" />
19
20
</ItemGroup >
20
21
Original file line number Diff line number Diff line change
1
+ # OpenShock Desktop Module Base
2
+
3
+ This module is the base for all OpenShock Desktop modules. It provides the basic structure and interfaces that all modules should implement.
4
+
5
+ ## Installation
6
+
7
+ ``` bash
8
+ dotnet add package OpenShock.Desktop.ModuleBase
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ You need to inherit the ` DesktopModuleBase ` class and add the ` DesktopModuleAttribute ` to your assembly.
14
+
15
+ A minimal module would look like this:
16
+
17
+ Note that the assembly attribute is needs to be outside a namespace to work.
18
+ ``` csharp
19
+ using OpenShock .Desktop .ModuleBase ;
20
+ using OpenShock .Desktop .ModuleBase .Navigation ;
21
+
22
+ [assembly :DesktopModule (typeof (ExampleDesktopModule ), " openshock.desktop.modules.examplemodule" , " Example Module" )]
23
+ namespace OpenShock .Desktop .Modules .ExampleModule ;
24
+
25
+ public class ExampleDesktopModule : DesktopModuleBase
26
+ {
27
+ public override IReadOnlyCollection <NavigationItem > NavigationComponents { get ; } = [];
28
+ }
29
+ ```
30
+
31
+
32
+
33
+ Or see the example module on how to use it.
You can’t perform that action at this time.
0 commit comments