remove id from dispatcher
All checks were successful
Linux arm64 / Build (push) Successful in 16s

This commit is contained in:
2025-08-04 10:11:11 +02:00
parent 90ae25bc8e
commit 75bae99daa
3 changed files with 13 additions and 37 deletions

View File

@@ -61,10 +61,9 @@ int main() {
// dispatch tests
MyHandler h;
auto h = std::make_shared<MyHandler>();
PacketDispatcher d;
d.RegisterHandler(PacketID::KeepAlive, &h);
d.RegisterHandler(PacketID::MDC, &h);
d.RegisterHandler(h);
d.Dispatch(m);
PacketFactory f;
auto message = f.CreateMessage(PacketID::KeepAlive);