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); }
public MsgTimer(BaseOverland m, DateTime time) : base(time - DateTime.Now) { m_mobile = m; Priority = TimerPriority.OneMinute; }
public MsgTimer( BaseOverland m, DateTime time ) : base( time - DateTime.Now ) { m_mobile = m; Priority = TimerPriority.OneMinute; }