use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class AudioNode method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(audioKey, "audio_key", null);
oc.write(loop, "looping", false);
oc.write(volume, "volume", 1);
oc.write(pitch, "pitch", 1);
oc.write(timeOffset, "time_offset", 0);
oc.write(dryFilter, "dry_filter", null);
oc.write(velocity, "velocity", null);
oc.write(reverbEnabled, "reverb_enabled", false);
oc.write(reverbFilter, "reverb_filter", null);
oc.write(maxDistance, "max_distance", 20);
oc.write(refDistance, "ref_distance", 10);
oc.write(directional, "directional", false);
oc.write(direction, "direction", null);
oc.write(innerAngle, "inner_angle", 360);
oc.write(outerAngle, "outer_angle", 360);
oc.write(positional, "positional", false);
oc.write(velocityFromTranslation, "velocity_from_translation", false);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class SpatialTrack method write.
@Override
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(translations, "translations", null);
oc.write(rotations, "rotations", null);
oc.write(times, "times", null);
oc.write(scales, "scales", null);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class ContentTextureKey method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(content, "content", new byte[0]);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class GuiTrack method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(screen, "screen", "");
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class DQuaternion method write.
public void write(JmeExporter e) throws IOException {
OutputCapsule cap = e.getCapsule(this);
cap.write(x, "x", 0);
cap.write(y, "y", 0);
cap.write(z, "z", 0);
cap.write(w, "w", 1);
}
Aggregations