OutputCapsule oc = ex.getCapsule(this);
oc.write(color, "color", null);
oc.write(enabled, "enabled", true);
+ oc.write(name, "name", null);
}
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
color = (ColorRGBA) ic.readSavable("color", null);
enabled = ic.readBoolean("enabled", true);
+ name = ic.readString("name", null);
}
public abstract void computeLastDistance(Spatial owner);
capsule.write(viewPortBottom, "viewPortBottom", 0);
capsule.write(width, "width", 0);
capsule.write(height, "height", 0);
+ capsule.write(name, "name", null);
}
public void read(JmeImporter e) throws IOException {
viewPortBottom = capsule.readFloat("viewPortBottom", 0);
width = capsule.readInt("width", 0);
height = capsule.readInt("height", 0);
+ name = capsule.readString("name", null);
}
}