Made devices aware of the plugin that loaded them

Fixed Corsair LL Fans layout
Expanded render events
Added identify option to device settings, must move this to be reusable though
This commit is contained in:
SpoinkyNL committed 2019-11-03 11:38:28 +01:00
1 parent ae41c6cac3
commit 05eed5ba00
23 files changed
+400 -229

No files matched your search

+7 -2
View File
@@ -1,4 +1,6 @@
using Artemis.Core.Plugins.Models;
using System;
using Artemis.Core.Plugins.Models;
using RGB.NET.Core;
namespace Artemis.Core.Plugins.Abstract
{
@@ -8,8 +10,11 @@ namespace Artemis.Core.Plugins.Abstract
/// </summary>
public abstract class Device : Plugin
{
protected Device(PluginInfo pluginInfo) : base(pluginInfo)
public IRGBDeviceProvider DeviceProvider { get; }
protected Device(PluginInfo pluginInfo, IRGBDeviceProvider deviceProvider) : base(pluginInfo)
{
DeviceProvider = deviceProvider ?? throw new ArgumentNullException(nameof(deviceProvider));
}
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace Artemis.Core.Plugins.Abstract
{
internal Plugin(PluginInfo pluginInfo)
{
PluginInfo = pluginInfo;
PluginInfo = pluginInfo ?? throw new ArgumentNullException(nameof(pluginInfo));
}
public PluginInfo PluginInfo { get; internal set; }