Enable nullability in Content.Server (#3685)

This commit is contained in:
DrSmugleaf
2021-03-16 15:50:20 +01:00
committed by GitHub
parent 90fec0ed24
commit a5ade526b7
306 changed files with 1616 additions and 1441 deletions

View File

@@ -2,11 +2,8 @@
using System.Collections.Generic;
using Content.Server.Construction;
using Content.Server.Interfaces.GameObjects;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.GameObjects.Components.Construction
@@ -17,10 +14,10 @@ namespace Content.Server.GameObjects.Components.Construction
public override string Name => "Machine";
[DataField("board")]
public string BoardPrototype { get; private set; }
public string? BoardPrototype { get; private set; }
private Container _boardContainer;
private Container _partContainer;
private Container _boardContainer = default!;
private Container _partContainer = default!;
public override void Initialize()
{