public void ExposeAutoReplaceValues(AutoReplaceWatcher watcher) { watcher.ExposeValue(ref _channel, "channel"); if (watcher.ExposeMode == LoadSaveMode.LoadingVars) { _desiredChannel = _channel; } }
public void ExposeAutoReplaceValues(AutoReplaceWatcher watcher) { var armed = IsArmed; watcher.ExposeValue(ref armed, "armed"); if (watcher.ExposeMode == LoadSaveMode.LoadingVars) { if (armed) { Arm(); } else { Disarm(); } } }