From 1ecd8d1d527b6b66b4746e44023b6ab3cb2ca4cc Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 21 Jan 2025 03:17:15 +0500 Subject: feat: using other serializer and gdx-websocket (because the old one doesn't support gwt) --- .../kz/ilotterytea/frogartha/utils/SerializerUtils.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/utils') diff --git a/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java new file mode 100644 index 0000000..bf0c3f3 --- /dev/null +++ b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java @@ -0,0 +1,14 @@ +package kz.ilotterytea.frogartha.utils; + +import com.github.czyzby.websocket.serialization.impl.ManualSerializer; +import kz.ilotterytea.frogartha.domain.Identity; +import kz.ilotterytea.frogartha.domain.server.Acknowledge; +import kz.ilotterytea.frogartha.exceptions.PlayerKickException; + +public class SerializerUtils { + public static void registerTypes(ManualSerializer serializer) { + serializer.register(new Acknowledge()); + serializer.register(new Identity()); + serializer.register(new PlayerKickException()); + } +} -- cgit v1.2.3