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

            int version = reader.ReadInt( );

            m_Child       = ( IDamageableItem )reader.ReadMobile( );
            m_StartID     = ( int )reader.ReadInt( );
            m_HalfHitsID  = ( int )reader.ReadInt( );
            m_DestroyedID = ( int )reader.ReadInt( );
            m_ItemLevel   = ( ItemLevel )reader.ReadInt( );
            m_Hits        = ( int )reader.ReadInt( );
            m_HitsMax     = ( int )reader.ReadInt( );
            Movable       = ( bool )reader.ReadBool( );
        }
Esempio n. 2
0
        //Provides the Parent Item (this) with a new Entity Link
        public void ProvideEntity( )
        {
            if (m_Child != null)
            {
                m_Child.Delete( );
            }

            IDamageableItem Idam = new IDamageableItem(this);

            if (Idam != null && !Idam.Deleted && this.Map != null)
            {
                m_Child = Idam;
                m_Child.Update( );
            }
        }
Esempio n. 3
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			this.m_Child = (IDamageableItem)reader.ReadMobile();
			this.m_StartID = (int)reader.ReadInt();
			this.m_HalfHitsID = (int)reader.ReadInt();
			this.m_DestroyedID = (int)reader.ReadInt();
			this.m_ItemLevel = (ItemLevel)reader.ReadInt();
			this.m_Hits = (int)reader.ReadInt();
			this.m_HitsMax = (int)reader.ReadInt();
			this.Movable = (bool)reader.ReadBool();
		}
Esempio n. 4
0
		//Provides the Parent Item (this) with a new Entity Link
		private void ProvideEntity()
		{
			if (this.m_Child != null)
			{
				this.m_Child.Delete();
			}

			IDamageableItem Idam = new IDamageableItem(this);

			if (Idam != null && !Idam.Deleted && this.Map != null)
			{
				this.m_Child = Idam;
				this.m_Child.Update();
			}
		}