Misc audio and related changes for replays (#12578)

This commit is contained in:
Leon Friedrich
2022-11-22 13:49:48 +13:00
committed by GitHub
parent d6be5d2df3
commit 6917b0fe17
30 changed files with 64 additions and 50 deletions

View File

@@ -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)