Added a method to register classes in bulk.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent 8f90e62fec
commit 1dbd617d2d
  1. 6
      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.

Loading…
Cancel
Save