Esempio n. 1
0
 public void write(JmeExporter e) throws IOException {
   try {
     e.getCapsule(this).write((Type) myclass.newInstance(), "myclass", new Type());
   } catch (Exception ee) {
   }
   e.getCapsule(this).writeSavableArrayList(new ArrayList(instances), "instances", null);
 }
Esempio n. 2
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(def.getAssetName(), "material_def", null);
   oc.write(additionalState, "render_state", null);
   oc.write(transparent, "is_transparent", false);
   oc.writeStringSavableMap(paramValues, "parameters", null);
 }
Esempio n. 3
0
  public void write(JmeExporter ex) throws IOException {
    OutputCapsule capsule = ex.getCapsule(this);
    capsule.write(name, "name", null);
    capsule.write(worldBound, "world_bound", null);
    capsule.write(cullHint, "cull_mode", CullHint.Inherit);
    capsule.write(batchHint, "batch_hint", BatchHint.Inherit);
    capsule.write(queueBucket, "queue", RenderQueue.Bucket.Inherit);
    capsule.write(shadowMode, "shadow_mode", ShadowMode.Inherit);
    capsule.write(localTransform, "transform", Transform.IDENTITY);
    capsule.write(localLights, "lights", null);

    // Shallow clone the controls array to convert its type.
    capsule.writeSavableArrayList(new ArrayList(controls), "controlsList", null);
    capsule.writeStringSavableMap(userData, "user_data", null);
  }