mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
VV attribute for ViewSubscriptions in PlayerSession.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user