Beispiel #1
0
 @Override
 public void read(JmeImporter im) throws IOException {
   InputCapsule ic = im.getCapsule(this);
   charSet = (BitmapCharacterSet) ic.readSavable("charSet", null);
   Savable[] pagesSavable = ic.readSavableArray("pages", null);
   pages = new Material[pagesSavable.length];
   System.arraycopy(pagesSavable, 0, pages, 0, pages.length);
 }
 @Override
 public void read(JmeImporter im) throws IOException {
   super.read(im);
   InputCapsule in = im.getCapsule(this);
   Savable[] sav = in.readSavableArray("targets", null);
   if (sav != null) {
     targets = new Mesh[sav.length];
     System.arraycopy(sav, 0, targets, 0, sav.length);
   }
   skeleton = (Skeleton) in.readSavable("skeleton", null);
 }