Cleanup some misc warnings (#37904)

* Fix warning CS8524 for TurretControllerWindow

* Fix warning CS0660 for AtmosAlarmThreshold
This commit is contained in:
Tayrtahn
2025-05-28 12:45:38 -04:00
committed by GitHub
parent 447f866745
commit 721d224fd7
2 changed files with 6 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ public sealed partial class TurretControllerWindow : BaseWindow
TurretArmamentSetting.Safe => SafeButton,
TurretArmamentSetting.Stun => StunButton,
TurretArmamentSetting.Lethal => LethalButton,
_ => throw new NotImplementedException(),
};
setPressedOn.Pressed = true;

View File

@@ -348,6 +348,11 @@ public readonly partial struct AlarmThresholdSetting: IEquatable<AlarmThresholdS
return true;
}
public override bool Equals(object? obj)
{
return obj is AlarmThresholdSetting ats && Equals(ats);
}
public static bool operator ==(AlarmThresholdSetting lhs, AlarmThresholdSetting rhs)
{
return lhs.Equals(rhs);