Skip to content

Commit

Permalink
Fix integration test not creating a client (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Jan 5, 2025
1 parent 2033c66 commit 6582337
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenDreamClient/Interface/DummyDreamInterfaceManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using OpenDreamClient.Interface.Controls;
using OpenDreamClient.Interface.Descriptors;
using OpenDreamShared.Dream;
using OpenDreamShared.Network.Messages;
using Robust.Shared.Network;
using Robust.Shared.Timing;

namespace OpenDreamClient.Interface;
Expand All @@ -18,8 +20,10 @@ public sealed class DummyDreamInterfaceManager : IDreamInterfaceManager {
public ControlMap? DefaultMap => null;
public ViewRange View => new(5);
public bool ShowPopupMenus => true;
[Dependency] private readonly IClientNetManager _netManager = default!;

public void Initialize() {
_netManager.RegisterNetMessage<MsgLoadInterface>((_) => _netManager.ClientSendMessage(new MsgAckLoadInterface()));
}

public void FrameUpdate(FrameEventArgs frameEventArgs) {
Expand Down

0 comments on commit 6582337

Please sign in to comment.