Dictionary
Supress Nullable warnings
This commit is contained in:
parent
316cc815b5
commit
ea6099a7d2
@ -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>
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user