Cleanup some misc warnings (#37904)
* Fix warning CS8524 for TurretControllerWindow * Fix warning CS0660 for AtmosAlarmThreshold
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user