Un-revert IPlayerManager refactor (#21244)

This commit is contained in:
Leon Friedrich
2023-10-28 09:59:53 +11:00
committed by GitHub
parent c55e1dcafd
commit e685cb626b
245 changed files with 781 additions and 943 deletions

View File

@@ -1,5 +1,5 @@
using Content.Shared.Mind;
using Robust.Server.Player;
using Robust.Shared.Player;
using Robust.Shared.Toolshed;
using Robust.Shared.Toolshed.Errors;
using Robust.Shared.Toolshed.Syntax;
@@ -15,7 +15,7 @@ public sealed class MindCommand : ToolshedCommand
private SharedMindSystem? _mind;
[CommandImplementation("get")]
public MindComponent? Get([PipedArgument] IPlayerSession session)
public MindComponent? Get([PipedArgument] ICommonSession session)
{
_mind ??= GetSys<SharedMindSystem>();
return _mind.TryGetMind(session, out _, out var mind) ? mind : null;
@@ -32,7 +32,7 @@ public sealed class MindCommand : ToolshedCommand
public EntityUid Control(
[CommandInvocationContext] IInvocationContext ctx,
[PipedArgument] EntityUid target,
[CommandArgument] ValueRef<IPlayerSession> playerRef)
[CommandArgument] ValueRef<ICommonSession> playerRef)
{
_mind ??= GetSys<SharedMindSystem>();