diff --git a/engine/src/networking/com/jme3/network/serializing/Serializer.java b/engine/src/networking/com/jme3/network/serializing/Serializer.java index 179371e45..80be2deb1 100644 --- a/engine/src/networking/com/jme3/network/serializing/Serializer.java +++ b/engine/src/networking/com/jme3/network/serializing/Serializer.java @@ -145,6 +145,12 @@ public abstract class Serializer { return registerClass(cls, true); } + public static void registerClasses(Class... classes) { + for( Class c : classes ) { + registerClass(c); + } + } + /** * Registers the specified class. The failOnMiss flag controls whether or * not this method returns null for failed registration or throws an exception.