public void GenZone() { zone = new hideout_zone(); zone.hideout = this; ZoneTemplate template = new ZoneTemplate(); template.Name = "hideout #" + ID; template.Type = ZoneTemplate.ZoneType.hideout; template.setRange(zoneLoc); zone.Name = template.Name; zone.Template = template; zone.Territory = new ZoneNPoly(template._x, template._y, template._z1, template._z2); for (int i = 0; i < template._x.Length; i++) { L2WorldRegion region = L2World.Instance.GetRegion(template._x[i], template._y[i]); if (region != null) { // region._zoneManager.addZone(zone); } else { CLogger.error("AreaTable[hideout]: null region at " + template._x[i] + " " + template._y[i] + " for zone " + zone.Name); } } }
public void GenZone() { ZoneTemplate template = new ZoneTemplate { Name = $"hideout #{ID}", Type = ZoneTemplate.ZoneType.Hideout }; template.SetRange(zoneLoc); zone = new hideout_zone { hideout = this, Name = template.Name, Template = template, Territory = new ZoneNPoly(template.X, template.Y, template.Z1, template.Z2) }; for (int i = 0; i < template.X.Length; i++) { L2WorldRegion region = L2World.Instance.GetRegion(template.X[i], template.Y[i]); if (region != null) { // region._zoneManager.addZone(zone); } else { log.Error($"AreaTable[hideout]: null region at {template.X[i]} {template.Y[i]} for zone {zone.Name}"); } } }