summaryrefslogtreecommitdiff
path: root/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-01-22 01:00:49 +0500
committerilotterytea <iltsu@alright.party>2025-01-22 01:00:49 +0500
commitb3739521c1dcaed9bd451e00067b7d304521745f (patch)
tree04403d23708e2cdfa35452243323c9f24cde5e26 /shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java
parenta7f77c115bc95eb8a667df1146cc26dc17367879 (diff)
feat: player direction is now calculated by server
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java')
-rw-r--r--shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java4
1 files changed, 4 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
index 1c62e0d..a00c0ff 100644
--- a/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java
+++ b/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java
@@ -2,8 +2,10 @@ 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.ChangedDirectionAction;
import kz.ilotterytea.frogartha.domain.client.PlayerJumpAction;
import kz.ilotterytea.frogartha.domain.server.Acknowledge;
+import kz.ilotterytea.frogartha.events.ChangedDirectionEvent;
import kz.ilotterytea.frogartha.events.PlayerJumpEvent;
import kz.ilotterytea.frogartha.exceptions.PlayerKickException;
@@ -14,5 +16,7 @@ public class SerializerUtils {
serializer.register(new PlayerKickException());
serializer.register(new PlayerJumpAction());
serializer.register(new PlayerJumpEvent());
+ serializer.register(new ChangedDirectionAction());
+ serializer.register(new ChangedDirectionEvent());
}
}