Esempio n. 1
0
        protected void RestoreBarrier()
        {
            for (var index = 0; index < m_Barriers.Count; index++)
            {
                FireBarrier barrier = m_Barriers[index];

                barrier.Active = true;
            }

            Visible = true;
        }
Esempio n. 2
0
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            for (var index = 0; index < m_Barriers.Count; index++)
            {
                FireBarrier barrier = m_Barriers[index];

                barrier.Delete();
            }
        }
Esempio n. 3
0
        public override void OnSpeech(SpeechEventArgs e)
        {
            string mantra = e.Speech.ToLower();

            if (Visible && e.Mobile.InRange(this, 2) && (mantra == "an-ord" || mantra == "anord"))
            {
                Visible = false;

                for (var index = 0; index < m_Barriers.Count; index++)
                {
                    FireBarrier barrier = m_Barriers[index];

                    barrier.Active = false;
                }

                Timer.DelayCall(TimeSpan.FromMinutes(2.0), RestoreBarrier);
            }
        }