private void OnToggleStatusMessage(EntityUid uid, GasMixerComponent mixer, GasMixerToggleStatusMessage args)
 {
     mixer.Enabled = args.Enabled;
     _adminLogSystem.Add(LogType.AtmosPowerChanged, LogImpact.Medium,
                         $"{ToPrettyString(args.Session.AttachedEntity!.Value):player} set the power on {ToPrettyString(uid):device} to {args.Enabled}");
     DirtyUI(uid, mixer);
 }
Beispiel #2
0
 private void OnToggleStatusMessage(EntityUid uid, GasMixerComponent mixer, GasMixerToggleStatusMessage args)
 {
     mixer.Enabled = args.Enabled;
     DirtyUI(uid, mixer);
 }