Examples of ZoneTemplate


Examples of lineage2.gameserver.templates.ZoneTemplate

            if (zones.isEmpty())
            {
              zones = new HashMap<>();
            }
            boolean active = (e.attributeValue("active") != null) && Boolean.parseBoolean(e.attributeValue("active"));
            ZoneTemplate template = ZoneHolder.getInstance().getTemplate(e.attributeValue("name"));
            if (template == null)
            {
              error("Zone: " + e.attributeValue("name") + " not found; file: " + getCurrentFileName());
              continue;
            }
            zones.put(template.getName(), new InstantZone.ZoneInfo(template, active));
          }
        }
        else if ("add_parameters".equalsIgnoreCase(subElement.getName()))
        {
          for (Element e : subElement.elements())
View Full Code Here

Examples of lineage2.gameserver.templates.ZoneTemplate

        }
        if ((territory == null) || territory.getTerritories().isEmpty())
        {
          error("Empty territory for zone: " + zoneDat.get("name"));
        }
        ZoneTemplate template = new ZoneTemplate(zoneDat);
        getHolder().addTemplate(template);
      }
    }
  }
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.