VV attribute for ViewSubscriptions in PlayerSession.

This commit is contained in:
Vera Aguilera Puerto
2021-09-18 11:14:44 +02:00
parent 6d03840fbd
commit 72341a25af

View File

@@ -18,6 +18,7 @@ namespace Robust.Server.Player
{
private readonly PlayerManager _playerManager;
public readonly PlayerState PlayerState;
private readonly HashSet<EntityUid> _viewSubscriptions = new();
public PlayerSession(PlayerManager playerManager, INetChannel client, PlayerData data)
{
@@ -36,7 +37,7 @@ namespace Robust.Server.Player
UpdatePlayerState();
}
private readonly HashSet<EntityUid> _viewSubscriptions = new();
[ViewVariables] public IReadOnlySet<EntityUid> ViewSubscriptions => _viewSubscriptions;
[ViewVariables] public INetChannel ConnectedClient { get; }
@@ -169,8 +170,6 @@ namespace Robust.Server.Player
UpdatePlayerState();
}
public IReadOnlySet<EntityUid> ViewSubscriptions => _viewSubscriptions;
private void SetAttachedEntityName()
{
if (Name != null && AttachedEntity != null)