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