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

            DeadlineTimer = new VaultAuctionClaimTimer(from, this, deadline);
            DeadlineTimer.Start();
        }
Ejemplo n.º 2
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();
                }
            }
        }