using System;
using System.Collections.Generic;
using RGB.NET.Core;
namespace RGB.NET.Devices.Asus.Generic
{
public class AsusUpdateQueue : UpdateQueue
{
#region Properties & Fields
///
/// Gets or sets the internal color-data cache.
///
protected byte[] ColorData { get; private set; }
private Action _updateAction;
private IntPtr _handle;
#endregion
#region Constructors
public AsusUpdateQueue(IDeviceUpdateTrigger updateTrigger)
: base(updateTrigger)
{ }
#endregion
#region Methods
public void Initialize(Action updateAction, IntPtr handle, int ledCount)
{
_updateAction = updateAction;
_handle = handle;
ColorData = new byte[ledCount * 3];
}
protected override void Update(Dictionary