Merge pull request #146 from DarthAffe/debug-layout-path

Include Layout path in Debug RGB device
This commit is contained in:
DarthAffe authored and GitHub committed 2020-08-03 00:05:51 +02:00
commit a5743d8b3a
1 file changed
+6
+6
View File
@@ -16,6 +16,11 @@ namespace RGB.NET.Devices.Debug
/// <inheritdoc />
public override DebugRGBDeviceInfo DeviceInfo { get; }
/// <summary>
/// Gets the path of the layout used to mock this <see cref="DebugRGBDevice"/>
/// </summary>
public string LayoutPath { get; }
private Func<Dictionary<LedId, Color>> _syncBackFunc;
private Action<IEnumerable<Led>> _updateLedsAction;
@@ -27,6 +32,7 @@ namespace RGB.NET.Devices.Debug
/// </summary>
internal DebugRGBDevice(string layoutPath, Func<Dictionary<LedId, Color>> syncBackFunc = null, Action<IEnumerable<Led>> updateLedsAction = null)
{
this.LayoutPath = layoutPath;
this._syncBackFunc = syncBackFunc;
this._updateLedsAction = updateLedsAction;