Examples of Weaponset


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

Examples of com.l2client.model.WeaponSet

    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

Examples of com.l2client.model.WeaponSet

         
          //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

Examples of gwlpr.database.entities.Weaponset

        weaponset.getWeaponsetPK().setCharacterID(weaponset.getCharacter().getId());
        EntityManager em = null;
        try {
            em = getEntityManager();
            em.getTransaction().begin();
            Weaponset persistentWeaponset = em.find(Weaponset.class, weaponset.getWeaponsetPK());
            Weapon weaponsOld = persistentWeaponset.getWeapons();
            Weapon weaponsNew = weaponset.getWeapons();
            Character characterOld = persistentWeaponset.getCharacter();
            Character characterNew = weaponset.getCharacter();
            if (weaponsNew != null) {
                weaponsNew = em.getReference(weaponsNew.getClass(), weaponsNew.getId());
                weaponset.setWeapons(weaponsNew);
            }
View Full Code Here

Examples of gwlpr.database.entities.Weaponset

    public void destroy(WeaponsetPK id) throws NonexistentEntityException {
        EntityManager em = null;
        try {
            em = getEntityManager();
            em.getTransaction().begin();
            Weaponset weaponset;
            try {
                weaponset = em.getReference(Weaponset.class, id);
                weaponset.getWeaponsetPK();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The weaponset with id " + id + " no longer exists.", enfe);
            }
            Weapon weapons = weaponset.getWeapons();
            if (weapons != null) {
                weapons.getWeaponsetCollection().remove(weaponset);
                weapons = em.merge(weapons);
            }
            Character character = weaponset.getCharacter();
            if (character != null) {
                character.getWeaponsetCollection().remove(weaponset);
                character = em.merge(character);
            }
            em.remove(weaponset);
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.