Fix IDE0090

This commit is contained in:
RoosterDragon
2023-04-05 19:34:12 +01:00
committed by Pavel Penev
parent 164abfdae1
commit 8a285f9b19
385 changed files with 790 additions and 794 deletions

View File

@@ -115,15 +115,15 @@ namespace OpenRA.Server
[TranslationReference]
const string GameStarted = "notification-game-started";
public readonly MersenneTwister Random = new MersenneTwister();
public readonly MersenneTwister Random = new();
public readonly ServerType Type;
public readonly List<Connection> Conns = new List<Connection>();
public readonly List<Connection> Conns = new();
public Session LobbyInfo;
public ServerSettings Settings;
public ModData ModData;
public List<string> TempBans = new List<string>();
public List<string> TempBans = new();
// Managed by LobbyCommands
public MapPreview Map;
@@ -134,19 +134,19 @@ namespace OpenRA.Server
public int OrderLatency = 1;
readonly int randomSeed;
readonly List<TcpListener> listeners = new List<TcpListener>();
readonly TypeDictionary serverTraits = new TypeDictionary();
readonly List<TcpListener> listeners = new();
readonly TypeDictionary serverTraits = new();
readonly PlayerDatabase playerDatabase;
OrderBuffer orderBuffer;
volatile ServerState internalState = ServerState.WaitingPlayers;
readonly BlockingCollection<IServerEvent> events = new BlockingCollection<IServerEvent>();
readonly BlockingCollection<IServerEvent> events = new();
ReplayRecorder recorder;
GameInformation gameInfo;
readonly List<GameInformation.Player> worldPlayers = new List<GameInformation.Player>();
readonly List<GameInformation.Player> worldPlayers = new();
readonly Stopwatch pingUpdated = Stopwatch.StartNew();
readonly PlayerMessageTracker playerMessageTracker;
@@ -802,7 +802,7 @@ namespace OpenRA.Server
recorder = null;
}
readonly Dictionary<int, byte[]> syncForFrame = new Dictionary<int, byte[]>();
readonly Dictionary<int, byte[]> syncForFrame = new();
int lastDefeatStateFrame;
ulong lastDefeatState;