Beispiel #1
0
        public void AddGump(Gump g)
        {
            if (m_Gumps == null)
            {
                return;
            }

            if (m_Gumps.Count >= m_GumpCap)
            {
                Console.WriteLine("Client: {0}: Exceeded gump cap, disconnecting...", this);
                Dispose();
            }
            else
            {
                m_Gumps.Add(g);
            }
        }
Beispiel #2
0
        public void AddGump(Gump g)
        {
            if (m_Gumps == null)
            {
                return;
            }

            if (m_Gumps.Count >= m_GumpCap)
            {
                log.WarnFormat("Client: {0}: Exceeded gump cap, disconnecting...",
                               this);
                Dispose();
            }
            else
            {
                m_Gumps.Add(g);
            }
        }