Exemplo n.º 1
0
        private static int WipeOverlandMobs()
        {
            int iDeleted = 0;

            ArrayList toDelete = new ArrayList();

            foreach (Mobile m in World.Mobiles.Values)
            {
                if (m is BaseOverland)
                {
                    toDelete.Add(m);
                }
            }

            for (int i = 0; i < toDelete.Count; i++)
            {
                BaseOverland bo = toDelete[i] as BaseOverland;
                if (bo != null)
                {
                    iDeleted++;
                    bo.Delete();
                }
            }

            return(iDeleted);
        }
Exemplo n.º 2
0
 public MsgTimer(BaseOverland m, DateTime time)
     : base(time - DateTime.Now)
 {
     m_mobile = m;
     Priority = TimerPriority.OneMinute;
 }
Exemplo n.º 3
0
			public MsgTimer( BaseOverland m, DateTime time ) : base( time - DateTime.Now )
			{
				m_mobile = m;
				Priority = TimerPriority.OneMinute;
			}