Skip to content

Commit

Permalink
fix(server): add missing handler
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMcAssey committed Jan 12, 2025
1 parent 46b47c8 commit db4e0be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions GLOKON.Baiters.Core/Packets/Handlers/MessageHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using GLOKON.Baiters.Core.Models.Networking;

namespace GLOKON.Baiters.Core.Packets.Handlers
{
internal class MessageHandler(BaitersServer server) : IPacketHandler

Check warning on line 5 in GLOKON.Baiters.Core/Packets/Handlers/MessageHandler.cs

View workflow job for this annotation

GitHub Actions / build_and_release

Parameter 'server' is unread.

Check warning on line 5 in GLOKON.Baiters.Core/Packets/Handlers/MessageHandler.cs

View workflow job for this annotation

GitHub Actions / Build Server (ubuntu-latest, linux-x64) / build-server

Parameter 'server' is unread.

Check warning on line 5 in GLOKON.Baiters.Core/Packets/Handlers/MessageHandler.cs

View workflow job for this annotation

GitHub Actions / Build Server (windows-latest, win-x64) / build-server

Parameter 'server' is unread.
{
public void Handle(ulong sender, Packet packet)
{
// TODO: Do we need to do anything?
}
}
}
1 change: 1 addition & 0 deletions GLOKON.Baiters.Core/Packets/PacketManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void Setup()
handlers.Add("actor_action", new ActorActionHandler(server));
handlers.Add("request_actors", new RequestActorsHandler(server));
handlers.Add("chalk_packet", new ChalkPacketHandler(server));
handlers.Add("message", new MessageHandler(server));
}

private void Server_OnPacket(ulong sender, Packet packet)
Expand Down

0 comments on commit db4e0be

Please sign in to comment.