Fix missing namespaces and other errors

This commit is contained in:
Debug 2023-10-31 19:43:58 +01:00
parent f8b4c88a2a
commit d2b6360e7b
11 changed files with 16 additions and 11 deletions

View File

@ -19,22 +19,17 @@ public sealed partial class DogVisionSystem : EntitySystem
SubscribeLocalEvent<DogVisionComponent, ComponentInit>(OnDogVisionInit);
SubscribeLocalEvent<DogVisionComponent, ComponentShutdown>(OnDogVisionShutdown);
SubscribeLocalEvent<DogVisionComponent, PlayerAttachedEvent>(OnPlayerAttached);
SubscribeLocalEvent<DogVisionComponent, PlayerDetachedEvent>(OnPlayerDetached);
_player.LocalPlayerAttached += OnAttachedChanged;
_player.LocalPlayerDetached += OnAttachedChanged;
_overlay = new();
}
private void OnPlayerAttached(EntityUid uid, DogVisionComponent component, PlayerAttachedEvent args)
private void OnAttachedChanged(EntityUid uid)
{
_overlayMan.AddOverlay(_overlay);
}
private void OnPlayerDetached(EntityUid uid, DogVisionComponent component, PlayerDetachedEvent args)
{
_overlayMan.RemoveOverlay(_overlay);
}
private void OnDogVisionInit(EntityUid uid, DogVisionComponent component, ComponentInit args)
{
if (_player.LocalPlayer?.ControlledEntity == uid)

View File

@ -15,6 +15,7 @@ using Content.Shared.Stunnable;
using Content.Shared.UserInterface;
using Content.Shared.Zombies;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.DeltaV.Harpy

View File

@ -7,6 +7,7 @@ using Content.Shared.Random.Helpers;
using Content.Shared.Kitchen;
using Robust.Server.GameObjects;
using Content.Server.Materials;
using Robust.Shared.Player;
using Robust.Shared.Timing;
namespace Content.Server.Roboisseur.Roboisseur

View File

@ -13,6 +13,7 @@ using Robust.Shared.Random;
using Robust.Shared.Prototypes;
using Robust.Server.GameObjects;
using Robust.Server.Player;
using Robust.Shared.Player;
namespace Content.Server.Abilities.Psionics
{

View File

@ -3,6 +3,7 @@ using Content.Shared.Administration;
using Robust.Server.Player;
using Robust.Shared.Console;
using Robust.Shared.Enums;
using Robust.Shared.Player;
namespace Content.Server.Chat.Commands
{
@ -15,7 +16,7 @@ namespace Content.Server.Chat.Commands
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (shell.Player is not IPlayerSession player)
if (shell.Player is not ICommonSession player)
{
shell.WriteError("This command cannot be run from the server.");
return;
@ -36,7 +37,7 @@ namespace Content.Server.Chat.Commands
var message = string.Join(" ", args).Trim();
if (string.IsNullOrEmpty(message))
return;
//Not sure if I should hide the logs from this. Default is false.
//Not sure if I should hide the logs from this. Default is false.
EntitySystem.Get<ChatSystem>().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Telepathic, ChatTransmitRange.Normal, false, shell, player);
}
}

View File

@ -6,6 +6,7 @@ using Robust.Server.Player;
using Robust.Shared.Console;
using Robust.Shared.Map;
using Robust.Shared.Maths;
using Robust.Shared.Player;
namespace Content.Server.Construction.Commands
{
@ -23,7 +24,7 @@ namespace Content.Server.Construction.Commands
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var player = shell.Player as IPlayerSession;
var player = shell.Player as ICommonSession;
var entityManager = IoCManager.Resolve<IEntityManager>();
EntityUid? gridId;

View File

@ -5,6 +5,7 @@ using Content.Server.Chat.Managers;
using Robust.Shared.Random;
using Robust.Shared.Prototypes;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
namespace Content.Server.Psionics.Dreams
{

View File

@ -5,6 +5,7 @@ using Content.Shared.Mobs.Components;
using Robust.Shared.Console;
using Robust.Server.GameObjects;
using Content.Shared.Actions;
using Robust.Shared.Player;
namespace Content.Server.Psionics;

View File

@ -14,6 +14,7 @@ using Content.Shared.Mobs.Components;
using Content.Shared.Psionics.Glimmer;
using Content.Shared.Research.Prototypes;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;

View File

@ -7,6 +7,7 @@ using Content.Server.StationEvents.Components;
using Content.Shared.Abilities.Psionics;
using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
using Robust.Shared.Player;
namespace Content.Server.StationEvents.Events;

View File

@ -4,6 +4,7 @@ using System.Threading;
using System.Threading.Tasks;
using Content.Server.Database;
using Content.Shared.CCVar;
using Content.Shared.Players;
using Content.Shared.Players.PlayTimeTracking;
using Robust.Shared.Asynchronous;
using Robust.Shared.Collections;