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); }
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); }
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 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; }