summaryrefslogtreecommitdiff
path: root/shared/src/main/java/kz/ilotterytea/frogartha/utils/SerializerUtils.java
blob: bf0c3f347edd2705b720165730a1b96872834efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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());
    }
}