static public AreaMapInfo GetAreaInfo(ushort ZoneID) { AreaMapInfo Info; if (!AreaInfos.TryGetValue(ZoneID, out Info)) { Info = new AreaMapInfo(ZoneID, WorldMgr.GetZoneAreas(ZoneID)); AreaInfos.Add(ZoneID, Info); } return(Info); }
public ClientZoneInfo(ushort ZoneId) { this.ZoneId = ZoneId; this.Influences = new List <AreaInfluence>(); this.Pieces = new List <MapPiece>(); this.Folder = Program.Config.ZoneFolder + "zone" + String.Format("{0:000}", ZoneId) + "/"; this.Areas = WorldMgr.GetZoneAreas(ZoneId); try { //LoadHeightMap(); LoadInfluences(); LoadMapPieces(); FrameWork.Log.Success("ClientFile", ZoneId + " Loaded " + Influences.Count + " Influence(s), " + Pieces + " MapPiece(s)"); } catch (Exception e) { FrameWork.Log.Error("ClientFile", e.ToString()); } }