private static void RemoveContext(Mobile m) { SpecialMoveContext context = GetContext(m); if (context != null) { m_PlayersTable.Remove(m); context.Timer.Stop(); } }
public static bool GetContext(Mobile m, Type type) { SpecialMoveContext context = m_PlayersTable[m] as SpecialMoveContext; if (context == null) { return(false); } return(context.Type == type); }
public static bool GetContext(Mobile m, Type type) { SpecialMoveContext context = null; m_PlayersTable.TryGetValue(m, out context); if (context == null) { return(false); } return(context.Type == type); }
public static bool GetContext(Mobile m, Type type) { SpecialMoveContext context = null; if (m_PlayersTable.Contains(m)) { context = (SpecialMoveContext)m_PlayersTable[m]; } else { return(false); } return(context.Type == type); }
private static void AddContext(Mobile m, SpecialMoveContext context) { m_PlayersTable[m] = context; }
private static void AddContext( Mobile m, SpecialMoveContext context ) { m_PlayersTable[m] = context; }