}
}
public void read(JmeImporter e) throws IOException {
super.read(e);
InputCapsule capsule = e.getCapsule(this);
top = (Line2D) capsule.readSavable("top", null);
right = (Line2D) capsule.readSavable("right", null);
bottom = (Line2D) capsule.readSavable("bottom", null);
left = (Line2D) capsule.readSavable("left", null);
worldTranslation = (Vector3f) capsule.readSavable("worldpos", null);
if(worldTranslation != null)
log.fine("TiledNavMesh loaded at:"+worldTranslation);
//FIXME loading and storing of border information
int[] bKeys = capsule.readIntArray("borders_keys",null);
int[] vKeys = capsule.readIntArray("borders_values",null);
for(int i=0; i<bKeys.length;i++)
borders.put(mCellArray[i], vKeys[i]);
for(int i=0;i<8;i++){
int[] b = capsule.readIntArray("allborders"+i,null);
for(int c : b)
allBorders.get(i).add(mCellArray[c]);
}
}