Dictionary

Supress Nullable warnings
This commit is contained in:
glax 2024-01-17 20:32:26 +01:00
parent 316cc815b5
commit ea6099a7d2
5 changed files with 7 additions and 6 deletions

View File

@ -1,2 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CS/@EntryIndexedValue">CS</s:String></wpf:ResourceDictionary>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CS/@EntryIndexedValue">CS</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=steamid/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

View File

@ -6,7 +6,7 @@ namespace CS2GSI;
public class CS2GSI
{
private readonly GSIServer _gsiServer;
private readonly GSIServer _gsiServer = null!;
private readonly List<CS2GameState> _allGameStates = new();
private CS2GameState? _lastLocalGameState = null;
private readonly ILogger? _logger;

View File

@ -4,7 +4,7 @@ namespace CS2GSI.GameState;
public record CS2GameState : GameState
{
public string ProviderSteamId;
public string ProviderSteamId = null!;
public int Timestamp;
public Map? Map;
public Player? Player;

View File

@ -4,10 +4,10 @@ namespace CS2GSI.GameState;
public record Map : GameState
{
public string Mode, MapName;
public string Mode = null!, MapName = null!;
public MapPhase Phase;
public int Round, NumMatchesToWinSeries;
public GameStateTeam GameStateTeamCT, GameStateTeamT;
public GameStateTeam GameStateTeamCT = null!, GameStateTeamT = null!;
public override string ToString()
{

View File

@ -4,7 +4,7 @@ namespace CS2GSI.GameState;
public record Player : GameState
{
public string SteamId, Name;
public string SteamId = null!, Name = null!;
public PlayerActivity Activity;
public CS2Team? Team;
public int? ObserverSlot;