Esempio n. 1
0
 public ZoneMgr(RegionMgr Region, Zone_Info Info)
 {
     this.Region   = Region;
     this.ZoneId   = Info.ZoneId;
     this.Info     = Info;
     this.Running  = true;
     this.AreaInfo = AreaMapMgr.GetAreaInfo(Info.ZoneId);
 }
Esempio n. 2
0
 public ZoneMgr(RegionMgr Region,Zone_Info Info)
 {
     this.Region = Region;
     this.ZoneId = Info.ZoneId;
     this.Info = Info;
     this.Running = true;
     this.AreaInfo = AreaMapMgr.GetAreaInfo(Info.ZoneId);
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public static 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;
        }