示例#1
0
文件: ZoneMgr.cs 项目: dzikun/WarEmu
 public ZoneMgr(RegionMgr Region,Zone_Info Info)
 {
     this.Region = Region;
     this.ZoneId = Info.ZoneId;
     this.Info = Info;
     this.Running = true;
     this.ClientInfo = ClientFileMgr.GetZoneInfo(Info.ZoneId);
 }
示例#2
0
 public ZoneMgr(RegionMgr Region, Zone_Info Info)
 {
     this.Region     = Region;
     this.ZoneId     = Info.ZoneId;
     this.Info       = Info;
     this.Running    = true;
     this.ClientInfo = ClientFileMgr.GetZoneInfo(Info.ZoneId);
 }
示例#3
0
 public static ClientZoneInfo GetZoneInfo(ushort ZoneId)
 {
     ClientZoneInfo Info;
     lock (ClientZoneFiles)
     {
         if (!ClientZoneFiles.TryGetValue(ZoneId, out Info))
         {
             Info = new ClientZoneInfo(ZoneId);
             ClientZoneFiles.Add(ZoneId, Info);
         }
     }
     return Info;
 }
示例#4
0
        static public ClientZoneInfo GetZoneInfo(ushort ZoneId)
        {
            ClientZoneInfo Info;

            lock (ClientZoneFiles)
            {
                if (!ClientZoneFiles.TryGetValue(ZoneId, out Info))
                {
                    Info = new ClientZoneInfo(ZoneId);
                    ClientZoneFiles.Add(ZoneId, Info);
                }
            }
            return(Info);
        }
        public static ClientZoneInfo GetZoneInfo(ushort zoneId)
        {
            ClientZoneInfo info;

            lock (ClientZoneFiles)
            {
                if (!ClientZoneFiles.TryGetValue(zoneId, out info))
                {
                    info = new ClientZoneInfo(zoneId);
                    ClientZoneFiles.Add(zoneId, info);
                }
            }
            return(info);
        }