Ejemplo n.º 1
0
        public void StartDelayedDamageContext(IDamageable d, Timer t)
        {
            if (DelayedDamageStacking)
            {
                return;                 //Sanity
            }

            DelayedDamageContextWrapper contexts;

            if (!m_ContextTable.TryGetValue(GetType(), out contexts))
            {
                contexts = new DelayedDamageContextWrapper();
                Type type = GetType();

                m_ContextTable.Add(type, contexts);

                if (DelayDamageFamily != null)
                {
                    foreach (var familyType in DelayDamageFamily)
                    {
                        m_ContextTable.Add(familyType, contexts);
                    }
                }
            }

            contexts.Add(d, t);
        }
Ejemplo n.º 2
0
        public void StartDelayedDamageContext(Mobile m, Timer t)
        {
            DelayedDamageContextWrapper contexts;

            if (!m_ContextTable.TryGetValue(GetType(), out contexts))
            {
                contexts = new DelayedDamageContextWrapper();
                m_ContextTable.Add(GetType(), contexts);
            }

            contexts.Add(m, t);
        }
Ejemplo n.º 3
0
        public void StartDelayedDamageContext(Mobile m, Timer t)
        {
            if (DelayedDamageStacking)
            {
                return; //Sanity
            }
            if (!m_ContextTable.TryGetValue(GetType(), out DelayedDamageContextWrapper contexts))
            {
                m_ContextTable[GetType()] = contexts = new DelayedDamageContextWrapper();
            }

            contexts.Add(m, t);
        }
Ejemplo n.º 4
0
        public void StartDelayedDamageContext(Mobile m, Timer t)
        {
            if (this.DelayedDamageStacking)
            {
                return;                 //Sanity
            }
            DelayedDamageContextWrapper contexts;

            if (!m_ContextTable.TryGetValue(this.GetType(), out contexts))
            {
                contexts = new DelayedDamageContextWrapper();
                m_ContextTable.Add(this.GetType(), contexts);
            }

            contexts.Add(m, t);
        }
Ejemplo n.º 5
0
        public void StartDelayedDamageContext(IDamageable d, Timer t)
        {
            if (DelayedDamageStacking)
            {
                return;                 //Sanity
            }

            DelayedDamageContextWrapper contexts;

            if (!m_ContextTable.TryGetValue(GetType(), out contexts))
            {
                contexts = new DelayedDamageContextWrapper();
                m_ContextTable.Add(GetType(), contexts);
            }

            contexts.Add(d, t);
        }