From a7f77c115bc95eb8a667df1146cc26dc17367879 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 22 Jan 2025 00:40:57 +0500 Subject: feat: player jumps like a frog!!! (FROGartha reference) + player state --- .../src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java | 4 ++++ 1 file changed, 4 insertions(+) (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 bf0c3f3..1c62e0d 100644 --- a/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java +++ b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java @@ -2,7 +2,9 @@ package kz.ilotterytea.frogartha.utils; import com.github.czyzby.websocket.serialization.impl.ManualSerializer; import kz.ilotterytea.frogartha.domain.Identity; +import kz.ilotterytea.frogartha.domain.client.PlayerJumpAction; import kz.ilotterytea.frogartha.domain.server.Acknowledge; +import kz.ilotterytea.frogartha.events.PlayerJumpEvent; import kz.ilotterytea.frogartha.exceptions.PlayerKickException; public class SerializerUtils { @@ -10,5 +12,7 @@ public class SerializerUtils { serializer.register(new Acknowledge()); serializer.register(new Identity()); serializer.register(new PlayerKickException()); + serializer.register(new PlayerJumpAction()); + serializer.register(new PlayerJumpEvent()); } } -- cgit v1.2.3