Examples of readSavableArray()


Examples of com.ardor3d.util.export.InputCapsule.readSavableArray()

    }

    public void read(final InputCapsule capsule) throws IOException {
        final InputCapsule ic = capsule;
        _enabled = ic.readBoolean("enabled", true);
        final RenderState[] states = CapsuleUtils.asArray(ic.readSavableArray("passStates", null), RenderState.class);
        _passStates.clear();
        if (states != null) {
            for (final RenderState state : states) {
                _passStates.put(state.getType(), state);
            }
View Full Code Here

Examples of com.jme3.export.InputCapsule.readSavableArray()

  public void read(JmeImporter e) throws IOException {
    InputCapsule capsule = e.getCapsule(this);
    id = capsule.readInt("id", -1);
    m_CellPlane = (Plane) capsule.readSavable("cellplane", new Plane());
    Savable[] sav = capsule.readSavableArray("vertex", new Vector3f[3]);
        for (int i = 0; i < sav.length; i++){
            m_Vertex[i] = (Vector3f) sav[i];
        }
    m_CenterPoint = (Vector3f) capsule.readSavable("center", new Vector3f());
    sav = capsule.readSavableArray("sides", new Line2D[3]);
View Full Code Here

Examples of com.jme3.export.InputCapsule.readSavableArray()

    Savable[] sav = capsule.readSavableArray("vertex", new Vector3f[3]);
        for (int i = 0; i < sav.length; i++){
            m_Vertex[i] = (Vector3f) sav[i];
        }
    m_CenterPoint = (Vector3f) capsule.readSavable("center", new Vector3f());
    sav = capsule.readSavableArray("sides", new Line2D[3]);
        for (int i = 0; i < sav.length; i++){
            m_Side[i] = (Line2D) sav[i];
        }
    //done one level above in mesh
//    m_Link = (Cell[]) capsule.readSavableArray("links", new Cell[3]);
View Full Code Here

Examples of com.jme3.export.InputCapsule.readSavableArray()

        for (int i = 0; i < sav.length; i++){
            m_Side[i] = (Line2D) sav[i];
        }
    //done one level above in mesh
//    m_Link = (Cell[]) capsule.readSavableArray("links", new Cell[3]);
    sav = capsule.readSavableArray("midpoints", new Vector3f[3]);
        for (int i = 0; i < sav.length; i++){
            m_WallMidpoint[i] = (Vector3f) sav[i];
        }
    m_WallDistance = capsule.readFloatArray("distances", new float[3])
  }
View Full Code Here

Examples of com.jme3.export.InputCapsule.readSavableArray()

  }

  @SuppressWarnings("unchecked")
  public void read(JmeImporter e) throws IOException {
    InputCapsule capsule = e.getCapsule(this);
    mCellArray = (com.l2client.navigation.Cell[]) capsule.readSavableArray("mCellArray", null);//new Cell[0]);
    if(mCellArray == null){
      //try to load the old version
      ArrayList<Cell> cellArray = (ArrayList<Cell>) capsule.readSavableArrayList("cellarray", new ArrayList<Cell>());
      mCellArray = cellArray.toArray(new Cell[cellArray.size()]);
      for(int i=0; i<mCellArray.length;i++)
View Full Code Here

Examples of com.jme3.export.InputCapsule.readSavableArray()

    public void read(JmeImporter im) throws IOException {
        super.read(im);
        InputCapsule ic = im.getCapsule(this);
        String[] loadedBoneList = ic.readStringArray("boneList", new String[0]);
        boneList.addAll(Arrays.asList(loadedBoneList));
        PhysicsBoneLink[] loadedBoneLinks = (PhysicsBoneLink[]) ic.readSavableArray("boneList", new PhysicsBoneLink[0]);
        for (PhysicsBoneLink physicsBoneLink : loadedBoneLinks) {
            boneLinks.put(physicsBoneLink.bone.getName(), physicsBoneLink);
        }
        modelPosition.set((Vector3f) ic.readSavable("modelPosition", new Vector3f()));
        modelRotation.set((Quaternion) ic.readSavable("modelRotation", new Quaternion()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.