public static SpeechItem Get( Mobile m ) { SpeechItem si = m_Table[m] as SpeechItem; if ( si == null ) m_Table[m] = si = new SpeechItem( m ); else si.ResetDecay(); si.MoveToWorld( m.Location, m.Map ); si.ProcessDelta(); return si; }
public DecayTimer( SpeechItem si ) : base(TimeSpan.FromSeconds( 30.0 )) { m_SI = si; }
public static SpeechItem Get( Mobile m ) { SpeechItem si = null; if (!m_Table.ContainsKey(m)) { m_Table.Add(m, si = new SpeechItem(m)); } else { si = m_Table[m]; si.ResetDecay(); } si.MoveToWorld( m.Location, m.Map ); si.ProcessDelta(); return si; }