Exemplo n.º 1
0
        public void StartTimer(Mobile from, DateTime deadline)
        {
            StopTimer();

            DeadlineTimer = new VaultAuctionClaimTimer(from, this, deadline);
            DeadlineTimer.Start();
        }
Exemplo n.º 2
0
 public void StopTimer()
 {
     if (DeadlineTimer != null)
     {
         DeadlineTimer.Stop();
         DeadlineTimer = null;
     }
 }
Exemplo n.º 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt(); // version

            _Index       = reader.ReadInt();
            _AuctionItem = reader.ReadBool();

            if (reader.ReadInt() == 0)
            {
                var m  = reader.ReadMobile();
                var dt = reader.ReadDateTime();

                if (m != null)
                {
                    DeadlineTimer = new VaultAuctionClaimTimer(m, this, dt);
                    DeadlineTimer.Start();
                }
            }
        }