Remove usages of client IPlayerSession from content.

This commit is contained in:
Pieter-Jan Briers
2021-05-13 01:17:55 +02:00
parent 23bc33a7aa
commit 4903c3bbc6
3 changed files with 12 additions and 10 deletions

View File

@@ -2,10 +2,10 @@
using JetBrains.Annotations;
using Robust.Client.AutoGenerated;
using Robust.Client.Console;
using Robust.Client.Player;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.IoC;
using Robust.Shared.Players;
using Robust.Shared.Utility;
namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
@@ -14,7 +14,7 @@ namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
[UsedImplicitly]
public partial class KickWindow : SS14Window
{
private IPlayerSession? _selectedSession;
private ICommonSession? _selectedSession;
protected override void EnteredTree()
{
@@ -22,7 +22,7 @@ namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
PlayerList.OnSelectionChanged += OnListOnOnSelectionChanged;
}
private void OnListOnOnSelectionChanged(IPlayerSession? obj)
private void OnListOnOnSelectionChanged(ICommonSession? obj)
{
_selectedSession = obj;
SubmitButton.Disabled = _selectedSession == null;

View File

@@ -7,6 +7,7 @@ using Robust.Client.Player;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.IoC;
using Robust.Shared.Players;
namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
{
@@ -14,7 +15,7 @@ namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
[UsedImplicitly]
public partial class TeleportWindow : SS14Window
{
private IPlayerSession? _selectedSession;
private ICommonSession? _selectedSession;
protected override void EnteredTree()
{
@@ -22,7 +23,7 @@ namespace Content.Client.UserInterface.AdminMenu.Tabs.AdminTab
PlayerList.OnSelectionChanged += OnListOnOnSelectionChanged;
}
private void OnListOnOnSelectionChanged(IPlayerSession? obj)
private void OnListOnOnSelectionChanged(ICommonSession? obj)
{
_selectedSession = obj;
SubmitButton.Disabled = _selectedSession == null;