From 6bf7ee0b5f0c15fefa2a6cde4a17d8f6ade3f39b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 23 Jan 2025 00:55:33 +0500 Subject: feat: chat !!! --- .../main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java') diff --git a/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java index e005937..3529968 100644 --- a/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java +++ b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java @@ -2,10 +2,7 @@ package kz.ilotterytea.frogartha.utils; import com.github.czyzby.websocket.serialization.impl.ManualSerializer; import kz.ilotterytea.frogartha.domain.Identity; -import kz.ilotterytea.frogartha.domain.actions.ChangedDirectionAction; -import kz.ilotterytea.frogartha.domain.actions.JoinRoomAction; -import kz.ilotterytea.frogartha.domain.actions.LeaveRoomAction; -import kz.ilotterytea.frogartha.domain.actions.PlayerJumpAction; +import kz.ilotterytea.frogartha.domain.actions.*; import kz.ilotterytea.frogartha.domain.events.*; import kz.ilotterytea.frogartha.exceptions.PlayerKickException; @@ -26,5 +23,8 @@ public class SerializerUtils { serializer.register(new LeaveRoomAction()); serializer.register(new PlayerLeftRoomEvent()); serializer.register(new SenderLeftRoomEvent()); + + serializer.register(new ChatMessageAction()); + serializer.register(new ChatMessageEvent()); } } -- cgit v1.2.3