mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Merge pull request #146 from DarthAffe/debug-layout-path
Include Layout path in Debug RGB device
This commit is contained in:
commit
a5743d8b3a
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user