GetWeatherList() public static method

public static GetWeatherList ( Server.Map facet ) : List
facet Server.Map
return List
Beispiel #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);
        }
Beispiel #2
0
        public static void Weather_OnCommand(CommandEventArgs e)
        {
            Mobile from = e.Mobile;

            Map facet = from.Map;

            if (facet == null)
            {
                return;
            }

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

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

                for (int j = 0; j < w.Area.Length; ++j)
                {
                    from.SendMessage(w.Area[j].X + ", " + w.Area[j].Y + "");
                }
            }
        }