diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-21 03:17:15 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-21 03:17:15 +0500 |
| commit | 1ecd8d1d527b6b66b4746e44023b6ab3cb2ca4cc (patch) | |
| tree | 44a766670059ef3beb1da048844fc7693418bcf8 /shared/src/main/java/kz/ilotterytea/frogartha/utils | |
| parent | 4e524d08c5b427cabc1a6e452347c09c963eb86c (diff) | |
feat: using other serializer and gdx-websocket (because the old one doesn't support gwt)
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/utils')
| -rw-r--r-- | shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java | 14 |
1 files changed, 14 insertions, 0 deletions
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()); + } +} |
