mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Use 'new' expression in places where the type is evident for the engine (#1415)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -43,19 +43,19 @@ namespace Robust.Server.Player
|
||||
|
||||
private GameTick _lastStateUpdate;
|
||||
|
||||
private readonly ReaderWriterLockSlim _sessionsLock = new ReaderWriterLockSlim();
|
||||
private readonly ReaderWriterLockSlim _sessionsLock = new();
|
||||
|
||||
/// <summary>
|
||||
/// Active sessions of connected clients to the server.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<NetUserId, PlayerSession> _sessions = new Dictionary<NetUserId, PlayerSession>();
|
||||
private readonly Dictionary<NetUserId, PlayerSession> _sessions = new();
|
||||
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<NetUserId, PlayerData> _playerData = new Dictionary<NetUserId, PlayerData>();
|
||||
private readonly Dictionary<NetUserId, PlayerData> _playerData = new();
|
||||
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<string, NetUserId> _userIdMap = new Dictionary<string, NetUserId>();
|
||||
private readonly Dictionary<string, NetUserId> _userIdMap = new();
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user