Legger til en del objekter for å teste kryonet funksjonalitet

This commit is contained in:
2020-03-12 11:17:42 +01:00
parent 2219ea3dbe
commit b0ebb2db3e
5 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package inf112.fiasko.roborally.utility;
import com.esotericsoftware.kryo.Kryo;
import inf112.fiasko.roborally.networking.SomeRequest;
import inf112.fiasko.roborally.networking.SomeResponse;
public final class NetworkUtil {
/**
* Registers all classes which can be sent between a server and a client
* @param kryo The kryo object to register the classes to
*/
public static void registerClasses(Kryo kryo) {
kryo.register(SomeRequest.class);
kryo.register(SomeResponse.class);
}
}