private void OnSignalValueRequested(EntityUid uid, SignalSwitchComponent component, SignalValueRequestedEvent args) { if (args.Port == "state") { args.Handled = true; args.Signal = component.State; } }
private void OnSignalValueRequested(EntityUid uid, TwoWayLeverComponent component, SignalValueRequestedEvent args) { args.Signal = component.State; args.Handled = true; }