public static bool HasGump <T>(this Mobile m) where T : Gump { if (m == null) { return(false); } var t = typeof(T); if (t.IsEqualOrChildOf <SuperGump>()) { return(SuperGump.HasInstance(m, t, true)); } return(m.HasGump(t)); }
public static bool HasGump <T>(this Mobile m) where T : Gump { if (m == null) { return(false); } var t = typeof(T); if (t.IsEqualOrChildOf <SuperGump>()) { return(SuperGump.HasInstance(m, t, true)); } return(m.HasGump(t)); }