mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Allow VVing IPlayerManager on the server.
This commit is contained in:
@@ -20,6 +20,7 @@ using Robust.Shared.Network;
|
||||
using Robust.Shared.Network.Messages;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Robust.Server.Player
|
||||
{
|
||||
@@ -46,11 +47,14 @@ namespace Robust.Server.Player
|
||||
/// <summary>
|
||||
/// Active sessions of connected clients to the server.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<NetSessionId, PlayerSession> _sessions = new Dictionary<NetSessionId, PlayerSession>();
|
||||
|
||||
[ViewVariables]
|
||||
private readonly Dictionary<NetSessionId, PlayerData> _playerData = new Dictionary<NetSessionId, PlayerData>();
|
||||
|
||||
/// <inheritdoc />
|
||||
[ViewVariables]
|
||||
public int PlayerCount
|
||||
{
|
||||
get
|
||||
@@ -68,6 +72,7 @@ namespace Robust.Server.Player
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[ViewVariables]
|
||||
public int MaxPlayers { get; private set; } = 32;
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user