Enable nullability in Content.Client (#3257)

* Enable nullability in Content.Client

* Remove #nullable enable

* Merge fixes

* Remove Debug.Assert

* Merge fixes

* Fix build

* Fix build
This commit is contained in:
DrSmugleaf
2021-03-10 14:48:29 +01:00
committed by GitHub
parent 4f9bd4e802
commit 902aa128c2
270 changed files with 1774 additions and 1550 deletions

View File

@@ -8,12 +8,12 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
[UsedImplicitly]
public class MedicalScannerBoundUserInterface : BoundUserInterface
{
private MedicalScannerWindow? _window;
public MedicalScannerBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey)
{
}
private MedicalScannerWindow _window;
protected override void Open()
{
base.Open();
@@ -29,7 +29,8 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
_window.Populate((MedicalScannerBoundUserInterfaceState) state);
_window?.Populate((MedicalScannerBoundUserInterfaceState) state);
}
protected override void Dispose(bool disposing)
@@ -37,7 +38,8 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
base.Dispose(disposing);
if (!disposing)
return;
_window.Dispose();
_window?.Dispose();
}
}
}