Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: Aurora.Devices.Asus.AuraDevice
- // Assembly: Aurora, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: 10E8C401-02CD-4F83-843C-67D1260C7788
- // Assembly location: C:\Users\Diogo\Desktop\Debug v0.0.7\Debug\Aurora.exe
- using AuraServiceLib;
- using Aurora.Settings;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Runtime.InteropServices;
- using System.Threading;
- namespace Aurora.Devices.Asus
- {
- internal class AuraDevice : Device
- {
- private static readonly bool DEBUG = true;
- private static readonly bool DEBUG_SPAM = false;
- private static readonly bool DEBUG_EFFECTS = false;
- private static readonly bool DEBUG_GROUPS = true;
- private static readonly bool DEBUG_LIGHTS = true;
- private readonly object _lock = new object();
- private Stopwatch watch = new Stopwatch();
- private long lastUpdateTime = 0;
- private bool initialized = false;
- private bool keyboardConnected = false;
- private bool peripheralConnected = false;
- private System.Windows.Controls.Image imgBitmap = new System.Windows.Controls.Image();
- private const string deviceName = "ASUS Aura";
- private static IAuraDeviceCollection auraDeviceCollection;
- private const int DEVICE_MODE_SW = 0;
- private const int DEVICE_MODE_EC = 1;
- private const uint DEVICE_TYPE_MAINBOARD_MASTER = 65536;
- private const uint DEVICE_TYPE_VGA = 131072;
- private const uint DEVICE_TYPE_DRAM = 458752;
- private const uint DEVICE_TYPE_KEYBOARD = 524288;
- private const uint DEVICE_TYPE_MOUSE = 589824;
- private const uint DEVICE_TYPE_ADDRESSABLE_STRIP = 69632;
- private VariableRegistry variableRegistry;
- private const string RegistryKeyboard = "ASUS Aura_enable_keyboard";
- private const string RegistryMouse = "ASUS Aura_enable_mouse";
- private const string RegistryVga = "ASUS Aura_enable_gpu";
- private const string RegistryOther = "ASUS Aura_enable_other";
- private const string RegistryKeyboardTitle = "Enable keyboard support";
- private const string RegistryMouseTitle = "Enable mouse support";
- private const string RegistryGpuTitle = "Enable GPU support";
- private const string RegistryOtherTitle = "Enable other peripheral support";
- private bool _registryEnableKeyboard;
- private bool _registryEnableMouse;
- private bool _registryEnableGpu;
- private bool _registryEnableOther;
- public string GetDeviceDetails()
- {
- if (!this.initialized)
- return "ASUS Aura: Not initialized";
- string str1 = "ASUS Aura:";
- for (int index = 0; index < AuraDevice.auraDeviceCollection.Count; ++index)
- {
- // ISSUE: variable of a compiler-generated type
- IAuraDevice auraDevice = AuraDevice.auraDeviceCollection[index];
- string str2 = str1;
- string str3;
- if (!string.IsNullOrEmpty(auraDevice.Manufacture + auraDevice.Model))
- str3 = " (" + (object) (index + 1) + ")" + auraDevice.Manufacture + " " + auraDevice.Model;
- else
- str3 = " (" + (object) (index + 1) + ")" + auraDevice.Name;
- str1 = str2 + str3;
- }
- return str1 + ": Connected";
- }
- public string GetDeviceName()
- {
- return "ASUS Aura";
- }
- public string GetDeviceUpdatePerformance()
- {
- return this.initialized ? this.lastUpdateTime.ToString() + " ms" : "";
- }
- public VariableRegistry GetRegisteredVariables()
- {
- if (this.variableRegistry == null)
- {
- this.variableRegistry = new VariableRegistry();
- // ISSUE: variable of a compiler-generated type
- AuraDevelopement instance = (AuraDevelopement) Activator.CreateInstance(Marshal.GetTypeFromCLSID(new Guid("34B707DC-1133-4EBC-B380-21387A50A89D")));
- // ISSUE: reference to a compiler-generated method
- instance.AURARequireToken();
- // ISSUE: reference to a compiler-generated method
- AuraDevice.auraDeviceCollection = instance.GetAllDevices();
- int num1 = 0;
- int num2 = 0;
- int num3 = 0;
- int num4 = 0;
- int num5 = 0;
- int num6 = 0;
- int num7 = 0;
- for (int index = 0; index < AuraDevice.auraDeviceCollection.Count; ++index)
- {
- // ISSUE: variable of a compiler-generated type
- IAuraDevice auraDevice = AuraDevice.auraDeviceCollection[index];
- string str = string.IsNullOrEmpty(auraDevice.Manufacture + auraDevice.Model) ? auraDevice.Name : auraDevice.Manufacture + " " + auraDevice.Model;
- string title1 = str + "\r\nLight count: " + (object) auraDevice.LightCount;
- string title2 = "WARNING UNKNOWN TYPE! Enable " + str + "\r\nLight count: " + (object) auraDevice.LightCount + "\r\nDevice type: " + string.Format("{0:X}", (object) auraDevice.Type);
- switch (auraDevice.Type)
- {
- case 65536:
- this.variableRegistry.Register("enable_mobo_" + (object) num1, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num1;
- break;
- case 69632:
- this.variableRegistry.Register("enable_adressable_" + (object) num4, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num4;
- break;
- case 131072:
- this.variableRegistry.Register("enable_vga_" + (object) num5, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num5;
- break;
- case 458752:
- this.variableRegistry.Register("enable_dram_" + (object) num3, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num3;
- break;
- case 524288:
- this.variableRegistry.Register("enable_keyboard_" + (object) num2, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num2;
- break;
- case 589824:
- this.variableRegistry.Register("enable_mouse_" + (object) num6, (object) true, title1, (object) null, (object) null, "", VariableFlags.None);
- ++num6;
- break;
- default:
- this.variableRegistry.Register("enable_unknown_" + (object) num7, (object) true, title2, (object) null, (object) null, "", VariableFlags.None);
- ++num7;
- break;
- }
- }
- }
- return this.variableRegistry;
- }
- public bool Initialize()
- {
- if (!this.initialized)
- {
- lock (this._lock)
- {
- Global.logger.Info("Initializing Device");
- try
- {
- if (AuraDevice.DEBUG_SPAM)
- this.Dump(AuraDevice.auraDeviceCollection);
- for (int index = 0; index < AuraDevice.auraDeviceCollection.Count; ++index)
- {
- // ISSUE: reference to a compiler-generated method
- AuraDevice.auraDeviceCollection[index].SetMode(0);
- // ISSUE: reference to a compiler-generated method
- AuraDevice.auraDeviceCollection[index].Apply();
- switch (AuraDevice.auraDeviceCollection[index].Type)
- {
- case 524288:
- this.keyboardConnected = true;
- break;
- default:
- this.peripheralConnected = true;
- break;
- }
- }
- this.initialized = true;
- }
- catch (Exception ex)
- {
- Global.logger.Error("There was an error initializing Asus Aura SDK.\r\n" + ex.Message);
- return false;
- }
- if (!this.initialized)
- Global.logger.Error("No Asus Aura devices successfully Initialized.");
- }
- }
- return this.initialized;
- }
- public bool IsConnected()
- {
- if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("IsConnected()");
- return this.initialized && AuraDevice.auraDeviceCollection != null;
- }
- public bool IsInitialized()
- {
- return this.initialized;
- }
- public bool IsKeyboardConnected()
- {
- if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("IsKeyboardConnected()");
- return this.keyboardConnected;
- }
- public bool IsPeripheralConnected()
- {
- if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("IsPeripheralConnected()");
- return this.peripheralConnected;
- }
- public bool Reconnect()
- {
- if (AuraDevice.DEBUG)
- Global.logger.Info("Reconnect()");
- this.OnDeviceStop();
- return this.Initialize();
- }
- public void Reset()
- {
- if (AuraDevice.DEBUG)
- Global.logger.Info("Reset()");
- this.OnDeviceStop();
- this.Initialize();
- }
- public void Shutdown()
- {
- if (AuraDevice.DEBUG)
- Global.logger.Info("Shutdown()");
- lock (this._lock)
- {
- if (!this.initialized)
- return;
- this.OnDeviceStop();
- }
- }
- public bool UpdateDevice(
- Dictionary<DeviceKeys, Color> keyColors,
- DoWorkEventArgs e,
- bool forced = false)
- {
- if (!this.initialized)
- return false;
- if (e.Cancel)
- return false;
- try
- {
- foreach (KeyValuePair<DeviceKeys, Color> keyColor in keyColors)
- {
- if (e.Cancel)
- return false;
- if (this.peripheralConnected)
- this.ProcessPeriphalDevices(keyColor);
- if (this.keyboardConnected)
- this.ProcessKeyboardDevices(keyColor);
- }
- if (e.Cancel)
- return false;
- }
- catch (Exception ex)
- {
- Global.logger.Error("UpdateDevice() Failed: " + ex.ToString());
- return false;
- }
- return true;
- }
- public bool UpdateDevice(
- DeviceColorComposition colorComposition,
- DoWorkEventArgs e,
- bool forced = false)
- {
- this.watch.Restart();
- bool flag = this.UpdateDevice(colorComposition.keyColors, e, forced);
- this.watch.Stop();
- this.lastUpdateTime = this.watch.ElapsedMilliseconds;
- return flag;
- }
- private void OnDeviceStop()
- {
- this.keyboardConnected = false;
- this.peripheralConnected = false;
- this.initialized = false;
- }
- private void ProcessPeriphalDevices(KeyValuePair<DeviceKeys, Color> keyValuePair)
- {
- int lightId = AuraDevice.DeviceKeyToAuraPeripheralKeyId(keyValuePair.Key);
- if (lightId == int.MaxValue)
- return;
- new Thread((ThreadStart) (() =>
- {
- for (int index = 0; index < AuraDevice.auraDeviceCollection.Count; ++index)
- {
- switch (AuraDevice.auraDeviceCollection[index].Type)
- {
- case 65536:
- case 69632:
- case 131072:
- case 458752:
- if (keyValuePair.Key == DeviceKeys.Peripheral_Logo)
- {
- this.SetDeviceLightsColor(AuraDevice.auraDeviceCollection[index], keyValuePair.Value);
- break;
- }
- break;
- case 589824:
- this.SetRgbLightColor(AuraDevice.auraDeviceCollection[index], lightId, keyValuePair.Value);
- break;
- }
- }
- })).Start();
- }
- private void ProcessKeyboardDevices(KeyValuePair<DeviceKeys, Color> keyValuePair)
- {
- new Thread((ThreadStart) (() =>
- {
- int auraKeyboardKeyId = AuraDevice.DeviceKeysToAuraKeyboardKeyId(keyValuePair.Key);
- if (auraKeyboardKeyId == int.MaxValue)
- return;
- for (int index = 0; index < AuraDevice.auraDeviceCollection.Count; ++index)
- {
- if (AuraDevice.auraDeviceCollection[index].Type == 524288U)
- this.SetRgbLightColor(AuraDevice.auraDeviceCollection[index], auraKeyboardKeyId, keyValuePair.Value);
- }
- })).Start();
- }
- /// <summary>
- /// Method for setting all RGB Lights for a device one color.
- /// </summary>
- /// <param name="device">IAuraDevice that controls the RGB lights</param>
- /// <param name="color">Color to set RGB key to</param>
- private void SetDeviceLightsColor(IAuraDevice device, Color color)
- {
- new Thread((ThreadStart) (() =>
- {
- bool flag = false;
- foreach (IAuraRgbLight light in device.Lights)
- {
- if (device.Type == 458752U || !this.ColorMatchesLight(color, light.Red, light.Green, light.Blue))
- {
- light.Red = color.R;
- light.Green = color.G;
- light.Blue = color.B;
- flag = true;
- }
- else if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("SetDeviceLightsColor() Color match dont update: " + light.Name);
- }
- if (!flag)
- return;
- // ISSUE: reference to a compiler-generated method
- device.Apply();
- })).Start();
- }
- /// <summary>Method for setting Aura Keyboard RGB keys.</summary>
- /// <param name="device">IAuraKeyboard that controls the RGB light</param>
- /// <param name="index">Index of RGB key. Keys are enumerated by the device controller</param>
- /// <param name="color">Color to set RGB key to</param>
- private void SetKeyboardRgbKeyColor(IAuraKeyboard device, int index, Color color)
- {
- new Thread((ThreadStart) (() =>
- {
- // ISSUE: variable of a compiler-generated type
- IAuraRgbKey key = device.Keys[index];
- bool flag = false;
- if (!this.ColorMatchesLight(color, key.Red, key.Green, key.Blue))
- {
- key.Red = color.R;
- key.Green = color.G;
- key.Blue = color.B;
- flag = true;
- }
- else if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("SetKeyboardRgbKeyColor() Color match dont update: " + key.Name);
- if (!flag)
- return;
- // ISSUE: reference to a compiler-generated method
- device.Apply();
- })).Start();
- }
- /// <summary>Method for setting general Aura RGB lights.</summary>
- /// <param name="device">IAuraDevice that controls the RGB light</param>
- /// <param name="index">Index of RGB Light. Lights are enumerated by the device controller</param>
- /// <param name="color">Color to set RGB light to</param>
- private void SetRgbLightColor(IAuraDevice device, int index, Color color)
- {
- new Thread((ThreadStart) (() =>
- {
- // ISSUE: variable of a compiler-generated type
- IAuraRgbLight light = device.Lights[index];
- bool flag = false;
- if (!this.ColorMatchesLight(color, light.Red, light.Green, light.Blue))
- {
- light.Red = color.R;
- light.Green = color.G;
- light.Blue = color.B;
- flag = true;
- }
- else if (AuraDevice.DEBUG_SPAM)
- Global.logger.Info("SetRgbLightColor() Color match dont update: " + light.Name);
- if (!flag)
- return;
- // ISSUE: reference to a compiler-generated method
- device.Apply();
- })).Start();
- }
- private bool ColorMatchesLight(Color color, byte r, byte g, byte b)
- {
- return (int) color.R == (int) r && (int) color.G == (int) g && (int) color.B == (int) b;
- }
- /// <summary>Determines the int ID from a DeviceKeys</summary>
- /// <param name="key">The key to translate</param>
- /// <returns>the ushort id, or ushort.MaxValue if invalid</returns>
- private static int DeviceKeysToAuraKeyboardKeyId(DeviceKeys key)
- {
- switch (key)
- {
- case DeviceKeys.ESC:
- return 1;
- case DeviceKeys.F1:
- return 59;
- case DeviceKeys.F2:
- return 60;
- case DeviceKeys.F3:
- return 61;
- case DeviceKeys.F4:
- return 62;
- case DeviceKeys.F5:
- return 63;
- case DeviceKeys.F6:
- return 64;
- case DeviceKeys.F7:
- return 65;
- case DeviceKeys.F8:
- return 66;
- case DeviceKeys.F9:
- return 67;
- case DeviceKeys.F10:
- return 68;
- case DeviceKeys.F11:
- return 87;
- case DeviceKeys.F12:
- return 88;
- case DeviceKeys.PRINT_SCREEN:
- return 183;
- case DeviceKeys.SCROLL_LOCK:
- return 70;
- case DeviceKeys.PAUSE_BREAK:
- return 197;
- case DeviceKeys.TILDE:
- return 41;
- case DeviceKeys.ONE:
- return 2;
- case DeviceKeys.TWO:
- return 3;
- case DeviceKeys.THREE:
- return 4;
- case DeviceKeys.FOUR:
- return 5;
- case DeviceKeys.FIVE:
- return 6;
- case DeviceKeys.SIX:
- return 7;
- case DeviceKeys.SEVEN:
- return 8;
- case DeviceKeys.EIGHT:
- return 9;
- case DeviceKeys.NINE:
- return 10;
- case DeviceKeys.ZERO:
- return 11;
- case DeviceKeys.MINUS:
- return 12;
- case DeviceKeys.EQUALS:
- return 13;
- case DeviceKeys.BACKSPACE:
- return 14;
- case DeviceKeys.INSERT:
- return 210;
- case DeviceKeys.HOME:
- return 199;
- case DeviceKeys.PAGE_UP:
- return 201;
- case DeviceKeys.NUM_LOCK:
- return 69;
- case DeviceKeys.NUM_SLASH:
- return 181;
- case DeviceKeys.NUM_ASTERISK:
- return 55;
- case DeviceKeys.NUM_MINUS:
- return 74;
- case DeviceKeys.TAB:
- return 15;
- case DeviceKeys.Q:
- return 16;
- case DeviceKeys.W:
- return 17;
- case DeviceKeys.E:
- return 18;
- case DeviceKeys.R:
- return 19;
- case DeviceKeys.T:
- return 20;
- case DeviceKeys.Y:
- return 21;
- case DeviceKeys.U:
- return 22;
- case DeviceKeys.I:
- return 23;
- case DeviceKeys.O:
- return 24;
- case DeviceKeys.P:
- return 25;
- case DeviceKeys.OPEN_BRACKET:
- return 26;
- case DeviceKeys.CLOSE_BRACKET:
- return 27;
- case DeviceKeys.BACKSLASH:
- return 43;
- case DeviceKeys.DELETE:
- return 211;
- case DeviceKeys.END:
- return 207;
- case DeviceKeys.PAGE_DOWN:
- return 209;
- case DeviceKeys.NUM_SEVEN:
- return 71;
- case DeviceKeys.NUM_EIGHT:
- return 72;
- case DeviceKeys.NUM_NINE:
- return 73;
- case DeviceKeys.NUM_PLUS:
- return 78;
- case DeviceKeys.CAPS_LOCK:
- return 58;
- case DeviceKeys.A:
- return 30;
- case DeviceKeys.S:
- return 31;
- case DeviceKeys.D:
- return 32;
- case DeviceKeys.F:
- return 33;
- case DeviceKeys.G:
- return 34;
- case DeviceKeys.H:
- return 35;
- case DeviceKeys.J:
- return 36;
- case DeviceKeys.K:
- return 37;
- case DeviceKeys.L:
- return 38;
- case DeviceKeys.SEMICOLON:
- return 39;
- case DeviceKeys.APOSTROPHE:
- return 40;
- case DeviceKeys.HASHTAG:
- return 3;
- case DeviceKeys.ENTER:
- return 28;
- case DeviceKeys.NUM_FOUR:
- return 75;
- case DeviceKeys.NUM_FIVE:
- return 76;
- case DeviceKeys.NUM_SIX:
- return 77;
- case DeviceKeys.LEFT_SHIFT:
- return 42;
- case DeviceKeys.BACKSLASH_UK:
- return 43;
- case DeviceKeys.Z:
- return 44;
- case DeviceKeys.X:
- return 45;
- case DeviceKeys.C:
- return 46;
- case DeviceKeys.V:
- return 47;
- case DeviceKeys.B:
- return 48;
- case DeviceKeys.N:
- return 49;
- case DeviceKeys.M:
- return 50;
- case DeviceKeys.COMMA:
- return 51;
- case DeviceKeys.PERIOD:
- return 52;
- case DeviceKeys.FORWARD_SLASH:
- return 53;
- case DeviceKeys.RIGHT_SHIFT:
- return 54;
- case DeviceKeys.ARROW_UP:
- return 200;
- case DeviceKeys.NUM_ONE:
- return 79;
- case DeviceKeys.NUM_TWO:
- return 80;
- case DeviceKeys.NUM_THREE:
- return 81;
- case DeviceKeys.NUM_ENTER:
- return 156;
- case DeviceKeys.LEFT_CONTROL:
- return 29;
- case DeviceKeys.LEFT_WINDOWS:
- return 219;
- case DeviceKeys.LEFT_ALT:
- return 56;
- case DeviceKeys.SPACE:
- return 57;
- case DeviceKeys.RIGHT_ALT:
- return 184;
- case DeviceKeys.APPLICATION_SELECT:
- return 221;
- case DeviceKeys.RIGHT_CONTROL:
- return 157;
- case DeviceKeys.ARROW_LEFT:
- return 203;
- case DeviceKeys.ARROW_DOWN:
- return 208;
- case DeviceKeys.ARROW_RIGHT:
- return 205;
- case DeviceKeys.NUM_ZERO:
- return 82;
- case DeviceKeys.NUM_PERIOD:
- return 83;
- case DeviceKeys.FN_Key:
- return 256;
- case DeviceKeys.LOGO:
- return 257;
- case DeviceKeys.ADDITIONALLIGHT1:
- return 258;
- case DeviceKeys.ADDITIONALLIGHT2:
- return 259;
- case DeviceKeys.OEM5:
- return 6;
- case DeviceKeys.OEMTilde:
- return 41;
- case DeviceKeys.OEM8:
- return 9;
- case DeviceKeys.OEM6:
- return 7;
- case DeviceKeys.OEM1:
- return 2;
- case DeviceKeys.OEMPlus:
- return 13;
- default:
- return int.MaxValue;
- }
- }
- /// <summary>Determines the ushort ID from a DeviceKeys</summary>
- /// <param name="key">The key to translate</param>
- /// <returns>the index of that mouse LED</returns>
- private static int DeviceKeyToAuraPeripheralKeyId(DeviceKeys key)
- {
- switch (key)
- {
- case DeviceKeys.Peripheral_Logo:
- return 0;
- case DeviceKeys.Peripheral_ScrollWheel:
- return 1;
- case DeviceKeys.Peripheral_FrontLight:
- return 2;
- default:
- return int.MaxValue;
- }
- }
- private void LedTest(IAuraDevice device, int time)
- {
- this.SetDeviceLightsColor(device, Color.Black);
- this.SetDeviceLightsColor(device, Color.Red);
- Thread.Sleep(time);
- this.SetDeviceLightsColor(device, Color.Green);
- Thread.Sleep(time);
- this.SetDeviceLightsColor(device, Color.Blue);
- Thread.Sleep(time);
- this.SetDeviceLightsColor(device, Color.Black);
- }
- /// <summary>Can be called anywhere after int()</summary>
- /// <param name="deviceCollection"></param>
- private void Dump(IAuraDeviceCollection deviceCollection)
- {
- Global.logger.Info("------------ Dump Aura Device Info Start -------------");
- foreach (IAuraDevice device in deviceCollection)
- {
- Global.logger.Info("Name:" + device.Name);
- Global.logger.Info("Manufacture:" + device.Manufacture);
- Global.logger.Info("Model:" + device.Model);
- Global.logger.Info("Groups:" + device.Groups.Count.ToString());
- Global.logger.Info("Lights:" + (object) device.Lights.Count);
- Global.logger.Info("Type:" + string.Format("{0:X}", (object) device.Type));
- if (AuraDevice.DEBUG_EFFECTS)
- {
- foreach (IAuraEffect effect in device.Effects)
- {
- Global.logger.Info("-------- Supported Lighting Effects -------");
- Global.logger.Info("- Effect Name:" + effect.Name);
- Global.logger.Info("- Effect ID:" + (object) effect.Id);
- Global.logger.Info("- Effect Synchronized:" + (object) effect.Synchronized);
- }
- }
- if (AuraDevice.DEBUG_GROUPS)
- {
- int num = 0;
- foreach (IAuraRgbLightGroup group in device.Groups)
- {
- Global.logger.Info("-------- Device Group Info -------");
- Global.logger.Info("- Group Name:" + group.Name);
- Global.logger.Info("- Group ID:" + string.Format("{0:X}", (object) group.Id));
- Global.logger.Info("- Group LED count:" + group.Count.ToString());
- foreach (IAuraRgbLight auraRgbLight in group)
- {
- Global.logger.Info("-------- Device Group Light Info -------");
- Global.logger.Info("-- Light name:" + auraRgbLight.Name);
- Global.logger.Info("- Light Index Id: " + (object) num);
- ++num;
- }
- }
- }
- if (AuraDevice.DEBUG_LIGHTS)
- {
- int num = 0;
- foreach (IAuraRgbLight light in device.Lights)
- {
- Global.logger.Info("-------- Device Light Info -------");
- Global.logger.Info("- Light Name:" + light.Name);
- Global.logger.Info("- Light Index Id: " + (object) num);
- ++num;
- }
- }
- }
- Global.logger.Info("------------Dump Aura Device Info Finished-------------");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement