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

◆ OnValueChanged()

override void System.Diagnostics.BooleanSwitch.OnValueChanged ( )
inlineprotectedvirtual

Reimplemented from System.Diagnostics.Switch.

Definition at line 32 of file BooleanSwitch.cs.

33 {
34 if (bool.TryParse(base.Value, out var result))
35 {
36 base.SwitchSetting = (result ? 1 : 0);
37 }
38 else
39 {
40 base.OnValueChanged();
41 }
42 }