Package com.l2client.model

Examples of com.l2client.model.WeaponSet


      return new Node("NULL");
    }
   
    HashMap<String, Asset> materials = getMaterials(top);

    WeaponSet weapons = getWeaponset(top);

    HashMap<Asset, String> meshArray = getMeshesWithMaterial(top);
   
    addWeaponSetToMeshMap(top, weapons, meshArray);

    Skeleton skel = getSkeleton(top);

    getAnimations(/*top, */weapons.getAnimSet(), weapons.getDefaultSet());

    Node n = assembleModel(template,meshArray,materials,skel,weapons.getAnimSet(), optimized, hwSkinning);
       
    return n;
  }
View Full Code Here


    File target = new File(targetDir.getAbsolutePath()+File.separatorChar+"weapons"+File.separatorChar+sourceDir.getName());
    target.mkdirs();

    for(File f : sourceDir.listFiles(weaponFilter))
    {
      WeaponSet s = new WeaponSet();
      if(s.readFromTextfile(f.getAbsolutePath())){
        try {
          BinaryExporter.getInstance().save(s,new File(target.getAbsolutePath()+File.separator+f.getName()+ ".j3o"));
          appendMegaSet(new String[] {"entity",sourceDir.getName(),"weapon","weapons/"+sourceDir.getName()+"/"+f.getName()+ ".j3o"});
        } catch (IOException e) {
          // TODO Auto-generated catch block
View Full Code Here

         
          //Meshes start
          HashMap<String, Geometry> geoms = assembler.getMeshes();
          HashMap<Asset, String> me = Assembler2.getMeshesWithMaterial(top);
          //weapons + anim defintion
          WeaponSet w = Assembler2.getWeaponset(top);
          Assembler2.addWeaponSetToMeshMap(top, w, me);
          //meshes end
          Assembler2.unpackMeshesIntoAssembler(me, mats, assembler);
          for(Asset a : me.keySet()){
            if(a.getName().startsWith("hair"))
              hair = a.getName();
          }
          Assembler2.getAnimations(/*top, */w.getAnimSet(), w.getDefaultSet());
          assembler.setAnimParts(w.getAnimSet());
         
         
        } catch (Exception ex) {
          logger.log(Level.SEVERE, null, ex);
        }
View Full Code Here

TOP

Related Classes of com.l2client.model.WeaponSet

Copyright © 2018 www.massapicom. 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.