mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
Legger til nye klasser som kan serialiseres ved hjelp av kryo
This commit is contained in:
parent
aa06d5df6c
commit
dac90e413d
@ -1,8 +1,11 @@
|
||||
package inf112.fiasko.roborally.utility;
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo;
|
||||
import inf112.fiasko.roborally.networking.ErrorResponse;
|
||||
import inf112.fiasko.roborally.networking.SomeRequest;
|
||||
import inf112.fiasko.roborally.networking.SomeResponse;
|
||||
import inf112.fiasko.roborally.objects.IDeck;
|
||||
import inf112.fiasko.roborally.objects.ProgrammingCard;
|
||||
|
||||
public final class NetworkUtil {
|
||||
|
||||
@ -13,5 +16,8 @@ public final class NetworkUtil {
|
||||
public static void registerClasses(Kryo kryo) {
|
||||
kryo.register(SomeRequest.class);
|
||||
kryo.register(SomeResponse.class);
|
||||
kryo.register(ErrorResponse.class);
|
||||
kryo.register(IDeck.class);
|
||||
kryo.register(ProgrammingCard.class);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user