Beispiel #1
0
        public WorldZoneInfo GetZoneInfoCache(string Zone)
        {
            Zone_Info entry = CharacterDB.SelectObject<Zone_Info>("Name='" + CharacterDB.Escape(Zone) + "'");

            WorldZoneInfo ZoneInfo = new WorldZoneInfo();
            ZoneInfo.ZoneFileName = entry.Name;
            ZoneInfo.Description = GetTextCache(entry.Desc);
            ZoneInfo.DisplayName = GetTextCache(entry.DisplayName);

            return ZoneInfo;
        }
Beispiel #2
0
        public WorldZoneInfo GetZoneInfoCache(string Zone)
        {
            Zone_Info entry = CharacterDB.SelectObject <Zone_Info>("Name='" + CharacterDB.Escape(Zone) + "'");

            WorldZoneInfo ZoneInfo = new WorldZoneInfo();

            ZoneInfo.ZoneFileName = entry.Name;
            ZoneInfo.Description  = GetTextCache(entry.Desc);
            ZoneInfo.DisplayName  = GetTextCache(entry.DisplayName);

            return(ZoneInfo);
        }