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

@@ -28,7 +28,7 @@ namespace Content.Client.Chat
/// <summary>
/// Default formatting string for the ClientChatConsole.
/// </summary>
public string DefaultChatFormat { get; set; }
public string DefaultChatFormat { get; set; } = string.Empty;
public bool ReleaseFocusOnEnter { get; set; } = true;
@@ -136,9 +136,9 @@ namespace Content.Client.Chat
}
}
public event TextSubmitHandler TextSubmitted;
public event TextSubmitHandler? TextSubmitted;
public event FilterToggledHandler FilterToggled;
public event FilterToggledHandler? FilterToggled;
public void AddLine(string message, ChatChannel channel, Color color)
{

View File

@@ -18,8 +18,6 @@ using Robust.Shared.Network;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
#nullable enable
namespace Content.Client.Chat
{
internal sealed class ChatManager : IChatManager, IPostInjectInit