public static void RemoveContext(Mobile m) { OrangePetalsContext context = GetContext(m); if (context != null) { RemoveContext(m, context); } }
public override void OnDoubleClick(Mobile from) { OrangePetalsContext context = GetContext(from); if (context != null) { from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1061904); return; } from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1061905); from.PlaySound(0x3B); Timer timer = new OrangePetalsTimer(from); timer.Start(); AddContext(from, new OrangePetalsContext(timer)); this.Consume(); }
private static void RemoveContext(Mobile m, OrangePetalsContext context) { m_Table.Remove(m); context.Timer.Stop(); }
private static void AddContext(Mobile m, OrangePetalsContext context) { m_Table[m] = context; }
private static void RemoveContext( Mobile m, OrangePetalsContext context ) { m_Table.Remove( m ); context.Timer.Stop(); }
private static void AddContext( Mobile m, OrangePetalsContext context ) { m_Table[m] = context; }