private static void EventSink_Login_Callback(object state) { Mobile from = (Mobile)state; NetState ns = from.NetState; if (ns == null) { return; } ShardPollGump spg = null; for (int i = 0; i < m_ActivePollers.Count; ++i) { ShardPoller poller = m_ActivePollers[i]; if (poller.Deleted || !poller.Active) { continue; } if (poller.TimeRemaining > TimeSpan.Zero) { if (poller.HasAlreadyVoted(ns)) { continue; } if (spg == null) { spg = new ShardPollGump(from, poller, false, null); from.SendGump(spg); } else { spg.QueuePoll(poller); } } else { poller.Active = false; } } }
private static void EventSink_Login_Callback( object state ) { Mobile from = (Mobile)state; NetState ns = from.NetState; if ( ns == null ) return; ShardPollGump spg = null; for ( int i = 0; i < m_ActivePollers.Count; ++i ) { ShardPoller poller = (ShardPoller)m_ActivePollers[i]; if ( poller.Deleted || !poller.Active ) continue; if ( poller.TimeRemaining > TimeSpan.Zero ) { if ( poller.HasAlreadyVoted( ns ) ) continue; if ( spg == null ) { spg = new ShardPollGump( from, poller, false, null ); from.SendGump( spg ); } else { spg.QueuePoll( poller ); } } else { poller.Active = false; } } }