private void OnPacketReceived(EntityUid uid, CrewMonitoringConsoleComponent component, PacketSentEvent args) { var suitSensor = _sensors.PacketToSuitSensor(args.Data); if (suitSensor == null) { return; } suitSensor.Timestamp = _gameTiming.CurTime; component.ConnectedSensors[args.SenderAddress] = suitSensor; }
private void OnRemove(EntityUid uid, CrewMonitoringConsoleComponent component, ComponentRemove args) { component.ConnectedSensors.Clear(); }