From b3739521c1dcaed9bd451e00067b7d304521745f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 22 Jan 2025 01:00:49 +0500 Subject: feat: player direction is now calculated by server --- .../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 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()); } } -- cgit v1.2.3