}
}
// This registers objects that are going to be sent over the network.
static public void register (EndPoint endPoint) {
Kryo kryo = endPoint.getKryo();
kryo.register(ArrayList.class);
kryo.register(RegisterName.class);
kryo.register(SimpleUnit.class);
kryo.register(UnitType.class);
kryo.register(Garden.class);
kryo.register(int[].class);
kryo.register(GardenSpaceType.class);
kryo.register(GardenSpaceType[][].class);
kryo.register(UnitLion.class);
kryo.register(UnitGazelle.class);
kryo.register(UnitElephant.class);
kryo.register(UnitOstrich.class);
kryo.register(UnitTreeOfLife.class);
kryo.register(EndGameStats.class);
kryo.register(ClearRequest.class);
}