Ejemplo n.º 1
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			switch (version)
			{
				case 3:
					{
						m_Level = (SecureLevel)reader.ReadInt();
						goto case 2;
					}
				case 2:
					{
						if (version < 3)
							m_Level = SecureLevel.Anyone;
						m_InstaSell = reader.ReadInt();
						m_LastBid = reader.ReadInt();
						m_CurrentBid = reader.ReadInt();
						m_StartingBid = reader.ReadInt();
						m_BidInc = reader.ReadInt();
						m_Bidding = reader.ReadBool();
						m_NumBids = reader.ReadInt();
						m_Last = reader.ReadMobile();
						m_Current = reader.ReadMobile();
						m_Hours = reader.ReadDouble();
						m_AuctionStart = reader.ReadDateTime();
						goto case 1;
					}
				case 1:
					{
						m_Command = reader.ReadBool();
						m_BondingBegin = reader.ReadDateTime();
						goto case 0;
					}
				case 0:
					{
						m_HomeRange = reader.ReadInt();
						m_Mode = (Server.Mobiles.FightMode)reader.ReadInt();
						m_Loyal = reader.ReadInt();
						m_Order = (Server.Mobiles.OrderType)reader.ReadInt();
						m_Owner = reader.ReadMobile();
						m_Controlled = (BaseCreature)reader.ReadMobile();
						m_IsBonded = reader.ReadBool();
						m_IsStabled = reader.ReadBool();
						m_Blessed = reader.ReadBool();
						m_Tamable = reader.ReadBool();
						m_NameMod = reader.ReadString();
						m_PetName = reader.ReadString();
						m_OwnerAbandonTime = reader.ReadDateTime();
						m_MinTameSkill = reader.ReadInt();
						break;
					}
			}
		}
Ejemplo n.º 2
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 3:
                {
                    m_StabledDate = reader.ReadDateTime();
                    goto case 2;
                }
                case 2:
                {
                    m_InstaSell = reader.ReadInt();
                    m_LastBid = reader.ReadInt();
                    m_CurrentBid = reader.ReadInt();
                    m_StartingBid = reader.ReadInt();
                    m_BidInc = reader.ReadInt();
                    m_Bidding = reader.ReadBool();
                    m_NumBids = reader.ReadInt();
                    m_Last = reader.ReadMobile();
                    m_Current = reader.ReadMobile();
                    m_Hours = reader.ReadDouble();
                    m_AuctionStart = reader.ReadDateTime();
                    goto case 1;
                }
                case 1:
                {
                    m_Command = reader.ReadBool();
                    m_BondingBegin = reader.ReadDateTime();
                    goto case 0;
                }
                case 0:
                {
                    m_HomeRange = reader.ReadInt();
                    m_Mode = (Server.Mobiles.FightMode)reader.ReadInt();
                    m_Loyal = reader.ReadInt();
                    m_Order = (Server.Mobiles.OrderType)reader.ReadInt();
                    m_Owner = reader.ReadMobile();
                    m_Controlled = (BaseCreature)reader.ReadMobile();
                    m_IsBonded = reader.ReadBool();
                    m_OwnerAbandonTime = reader.ReadDateTime();
                    m_MinTameSkill = reader.ReadInt();
                    break;
                }
            }

            if( this.Owner != null && DateTime.Compare( DateTime.MinValue, this.StabledDate ) == 0 )
                this.StabledDate = DateTime.Now;
        }
Ejemplo n.º 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 3:
            {
                m_Level = (SecureLevel)reader.ReadInt();
                goto case 2;
            }

            case 2:
            {
                if (version < 3)
                {
                    m_Level = SecureLevel.Anyone;
                }
                m_InstaSell    = reader.ReadInt();
                m_LastBid      = reader.ReadInt();
                m_CurrentBid   = reader.ReadInt();
                m_StartingBid  = reader.ReadInt();
                m_BidInc       = reader.ReadInt();
                m_Bidding      = reader.ReadBool();
                m_NumBids      = reader.ReadInt();
                m_Last         = reader.ReadMobile();
                m_Current      = reader.ReadMobile();
                m_Hours        = reader.ReadDouble();
                m_AuctionStart = reader.ReadDateTime();
                goto case 1;
            }

            case 1:
            {
                m_Command      = reader.ReadBool();
                m_BondingBegin = reader.ReadDateTime();
                goto case 0;
            }

            case 0:
            {
                m_HomeRange        = reader.ReadInt();
                m_Mode             = (Server.Mobiles.FightMode)reader.ReadInt();
                m_Loyal            = reader.ReadInt();
                m_Order            = (Server.Mobiles.OrderType)reader.ReadInt();
                m_Owner            = reader.ReadMobile();
                m_Controlled       = (BaseCreature)reader.ReadMobile();
                m_IsBonded         = reader.ReadBool();
                m_IsStabled        = reader.ReadBool();
                m_Blessed          = reader.ReadBool();
                m_Tamable          = reader.ReadBool();
                m_NameMod          = reader.ReadString();
                m_PetName          = reader.ReadString();
                m_OwnerAbandonTime = reader.ReadDateTime();
                m_MinTameSkill     = reader.ReadInt();
                break;
            }
            }
        }