Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Initialize()

override void ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup.Initialize ( )
inlineprotected

Definition at line 73 of file SteelSeriesDeviceGroup.cs.

74 {
75 if (!_isInitialized)
76 {
78 _isInitialized = true;
79 for (int i = 0; i < 12; i++)
80 {
82 }
84 int num = 27;
85 int num2 = 0;
86 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[0], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "one", num + 1, num2 + 4));
87 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[1], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "two", num + 2, num2 + 4));
88 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[2], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "three", num + 3, num2 + 4));
89 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[3], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "four", num + 4, num2 + 3));
90 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[4], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "five", num + 4, num2 + 2));
91 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[5], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "six", num + 4, num2 + 1));
92 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[6], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "seven", num + 3, num2));
93 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[7], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "eight", num + 2, num2));
94 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[8], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "nine", num + 1, num2));
95 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[9], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "ten", num, num2 + 1));
96 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[10], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "eleven", num, num2 + 2));
97 TrackDeviceAndAddItToList(_devicesThatStaggerByFrameGroup[11], new SteelSeriesSecondaryDeviceByZone(_colorProfiles.Generic, RgbDeviceType.Generic, "twelve", num2, num2 + 3));
98 }
99 }
void TrackDeviceAndAddItToList(List< RgbDevice > deviceList, RgbDevice device)
void Add(TKey key, TValue value)

References ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._colorProfiles, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._devicesThatDontStagger, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._devicesThatStaggerByFrameGroup, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._isInitialized, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup.ConnectToGameSense(), ReLogic.Peripherals.RGB.VendorColorProfile.Generic, ReLogic.Peripherals.RGB.VendorColorProfile.Keyboard, and ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup.TrackDeviceAndAddItToList().