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

◆ LoadSpecialRules()

override void ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup.LoadSpecialRules ( object specialRulesObject)
inlinevirtual

Reimplemented from ReLogic.Peripherals.RGB.RgbDeviceGroup.

Definition at line 116 of file SteelSeriesDeviceGroup.cs.

117 {
118 if (!(specialRulesObject is GameSenseSpecificInfo gameSenseSpecificInfo))
119 {
120 return;
121 }
122 _bindEvents = gameSenseSpecificInfo.EventsToBind.ToArray();
123 ARgbGameValueTracker[] array = gameSenseSpecificInfo.MiscEvents.ToArray();
125 foreach (RgbDevice device in _devices)
126 {
127 if (device is IGameSenseDevice gameSenseDevice)
128 {
129 gameSenseDevice.CollectEventsToTrack(_bindEvents, array);
130 }
131 }
134 {
135 _miscEvents.Add(new SteelSeriesEventRelay(theEvent));
136 }
137 }
void Add(TKey key, TValue value)

References ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._bindEvents, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._devices, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._gameSenseConnection, ReLogic.Peripherals.RGB.SteelSeries.SteelSeriesDeviceGroup._miscEvents, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, and ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection.TryRegisteringEvents().