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

@@ -5,12 +5,11 @@ using Content.Server.Chat.Managers;
using Content.Server.Popups;
using Content.Shared.Database;
using Content.Shared.Popups;
using Robust.Server.Player;
using Robust.Shared.Player;
using Content.Shared.Chat;
using Content.Shared.Prayer;
using Content.Shared.Verbs;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
namespace Content.Server.Prayer;
/// <summary>
@@ -74,7 +73,7 @@ public sealed class PrayerSystem : EntitySystem
/// <param name="source">The IPlayerSession that sent the message</param>
/// <param name="messageString">The main message sent to the player via the chatbox</param>
/// <param name="popupMessage">The popup to notify the player, also prepended to the messageString</param>
public void SendSubtleMessage(IPlayerSession target, IPlayerSession source, string messageString, string popupMessage)
public void SendSubtleMessage(ICommonSession target, ICommonSession source, string messageString, string popupMessage)
{
if (target.AttachedEntity == null)
return;
@@ -96,7 +95,7 @@ public sealed class PrayerSystem : EntitySystem
/// You may be wondering, "Why the admin chat, specifically? Nobody even reads it!"
/// Exactly.
/// </remarks>
public void Pray(IPlayerSession sender, PrayableComponent comp, string message)
public void Pray(ICommonSession sender, PrayableComponent comp, string message)
{
if (sender.AttachedEntity == null)
return;