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

◆ Step_UpdateReactiveKeys()

void Terraria.GameContent.ChromaHotkeyPainter.Step_UpdateReactiveKeys ( )
inlineprivate

Definition at line 319 of file ChromaHotkeyPainter.cs.

320 {
321 foreach (ReactiveRGBKey key in _reactiveKeys.FindAll((ReactiveRGBKey x) => x.Expired))
322 {
323 key.Clear();
324 if (!_keys.Any((KeyValuePair<string, PaintKey> x) => x.Value.UsesKey(key.XNAKey)))
325 {
326 key.Unbind();
327 }
328 }
329 _reactiveKeys.RemoveAll((ReactiveRGBKey x) => x.Expired);
330 foreach (ReactiveRGBKey reactiveKey in _reactiveKeys)
331 {
332 reactiveKey.Update();
333 }
334 }
readonly List< ReactiveRGBKey > _reactiveKeys
readonly Dictionary< string, PaintKey > _keys

References Terraria.GameContent.ChromaHotkeyPainter._keys, Terraria.GameContent.ChromaHotkeyPainter._reactiveKeys, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), Terraria.GameContent.ChromaHotkeyPainter.ReactiveRGBKey.Expired, and System.key.

Referenced by Terraria.GameContent.ChromaHotkeyPainter.Update().