Beispiel #1
0
        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));
        }