Server.Misc.Weather.GetWeatherList C# (CSharp) Méthode

GetWeatherList() public static méthode

public static GetWeatherList ( Server.Map facet ) : List
facet Server.Map
Résultat List
		public static List<Weather> GetWeatherList( Map facet )
		{
			if ( facet == null )
				return null;

			List<Weather> list = null;
			m_WeatherByFacet.TryGetValue( facet, out list );

			if ( list == null )
				m_WeatherByFacet[facet] = list = new List<Weather>();

			return list;
		}

Usage Example

Exemple #1
0
        public override void OnDoubleClick(Mobile from)
        {
            Map facet = from.Map;

            if (facet == null)
            {
                return;
            }

            List <Weather> list = Weather.GetWeatherList(facet);

            ClearPins();

            for (int i = 0; i < list.Count; ++i)
            {
                Weather w = list[i];

                for (int j = 0; j < w.Area.Length; ++j)
                {
                    AddWorldPin(w.Area[j].X + (w.Area[j].Width / 2), w.Area[j].Y + (w.Area[j].Height / 2));
                }
            }

            base.OnDoubleClick(from);
        }
All Usage Examples Of Server.Misc.Weather::GetWeatherList