示例#1
0
        public override void OnAfterDelete()
        {
            try{
                ForSaleSign.ClearHouse();

                Doors.Clear();

                base.OnAfterDelete();
            }catch { Errors.Report(String.Format("TownHouse-> OnAfterDelete()-> {0}", Owner)); }
        }
示例#2
0
        public override void OnSpeech(SpeechEventArgs e)
        {
            if (e.Mobile != Owner || !IsInside(e.Mobile))
            {
                return;
            }

            if (e.Speech.ToLower() == "check house rent")
            {
                ForSaleSign.CheckRentTimer();
            }
        }
示例#3
0
        public override void OnSpeech(SpeechEventArgs e)
        {
            if (e.Mobile != Owner || !IsInside(e.Mobile))
            {
                return;
            }

            if (e.Speech.ToLower() == "check house rent")
            {
                ForSaleSign.CheckRentTimer();
            }

            Timer.DelayCall(TimeSpan.Zero, new TimerStateCallback(AfterSpeech), e.Mobile);
        }
示例#4
0
        public override void OnDelete()
        {
            if (c_Hanger != null)
            {
                c_Hanger.Delete();
            }

            foreach (Item item in Sign.GetItemsInRange(0).OfType <Item>().Where(item => item != null && item != Sign))
            {
                item.Visible = true;
            }

            ForSaleSign.ClearHouse();
            Doors.Clear();

            s_TownHouses.Remove(this);

            base.OnDelete();
        }
示例#5
0
        public override void OnDelete()
        {
            if (_Hanger != null)
            {
                _Hanger.Delete();
            }

            foreach (var item in Sign.GetItemsInRange(0).Where(item => item != Sign))
            {
                item.Visible = true;
            }

            ForSaleSign.ClearHouse();
            Doors.Clear();

            AllTownHouses.Remove(this);

            base.OnDelete();
        }