Misc audio and related changes for replays (#12578)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Content.Server.Ghost.Components;
|
||||
using Content.Server.Players;
|
||||
@@ -19,6 +20,7 @@ using Robust.Shared.Input.Binding;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Players;
|
||||
using Robust.Shared.Replays;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Server.Pointing.EntitySystems
|
||||
@@ -26,6 +28,7 @@ namespace Content.Server.Pointing.EntitySystems
|
||||
[UsedImplicitly]
|
||||
internal sealed class PointingSystem : SharedPointingSystem
|
||||
{
|
||||
[Dependency] private readonly IReplayRecordingManager _replay = default!;
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
||||
@@ -72,8 +75,10 @@ namespace Content.Server.Pointing.EntitySystems
|
||||
? viewerPointedAtMessage
|
||||
: viewerMessage;
|
||||
|
||||
_popup.PopupEntity(message, source, Filter.Entities(viewerEntity));
|
||||
RaiseNetworkEvent(new PopupEntityEvent(message, PopupType.Small, source), viewerEntity);
|
||||
}
|
||||
|
||||
_replay.QueueReplayMessage(new PopupEntityEvent(viewerMessage, PopupType.Small, source));
|
||||
}
|
||||
|
||||
public bool InRange(EntityUid pointer, EntityCoordinates coordinates)
|
||||
|
||||
Reference in New Issue
Block a user