(Of course, because we needed another one).
This is a template for the .NET Template Engine to make Dalamud plugins. It has several benefits over SamplePlugin:
- Assumes knowledge and experience of making Dalamud plugins
- Easy to get started with
- Easy to create from the dotnet CLI/Visual Studio/JetBrains Rider
- Optionally toggle windowing, configuration, commands
- Builds out of the box (but please let me know if there are issues!)
- Modern
- Uses Dalamud.NET.Sdk
- Only a Version field in the .csproj
- Choose your bias
- Service injection via god objects, constructor injection, or static properties
- No provided .editorconfig, bring your own code style & reformat
- Contains a .gitignore ignoring JetBrains IDEs
- Clean
- No image loading or Data folder to strip out
- Ships with a proper LICENSE file without the Markdown extension
Clone this repository and run this command:
dotnet new install --force .
You can then use dotnet new dalamudplugin
to create a new plugin, or use the GUI in Visual Studio/JetBrains Rider.
Available options:
ServiceType
: How services are accessed in the pluginGodObject
: Services are accessed through static properties on a Services classConstructor
: Services are passed to the plugin constructorStaticProperty
: Services are accessed through a static property on the Plugin class
Windowing
: Whether to include the Dalamud window system for the pluginConfiguration
: Whether to include a configuration file for the plugin- If
Windowing
is enabled, a config window is created
- If
Command
: Whether to include the Dalamud command system for the plugin- If
Windowing
is enabled, the command toggles the UI
- If
If the plugin doesn't build out of the box after creation, this is considered a bug. Please fire an issue - there's a lot of permutations of config options here.