using RGB.NET.Core; namespace RGB.NET.Devices.Asus { /// /// /// Represents a Asus dram. /// public class AsusDramRGBDevice : AsusRGBDevice, IDRAM { #region Constructors /// /// /// Initializes a new instance of the class. /// /// The specific information provided by Asus for the DRAM. internal AsusDramRGBDevice(AsusRGBDeviceInfo info, IDeviceUpdateTrigger updateTrigger) : base(info, updateTrigger) { InitializeLayout(); } #endregion #region Methods private void InitializeLayout() { int ledCount = DeviceInfo.Device.Lights.Count; for (int i = 0; i < ledCount; i++) AddLed(LedId.DRAM1 + i, new Point(i * 10, 0), new Size(10, 10)); } /// protected override object? GetLedCustomData(LedId ledId) => (int)ledId - (int)LedId.DRAM1; #endregion } }