public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt( );

            m_Child       = ( IDamageableItem2 )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( );
        }
        //Provides the Parent Item (this) with a new Entity Link
        private void ProvideEntity( )
        {
            if (m_Child != null)
            {
                m_Child.Delete( );
            }

            IDamageableItem2 Idam = new IDamageableItem2(this);

            if (Idam != null && !Idam.Deleted && this.Map != null)
            {
                m_Child = Idam;
                m_Child.Update( );
            }
        }
Exemplo n.º 3
0
        //Provides the Parent Item (this) with a new Entity Link
        private void ProvideEntity( )
        {
            if( m_Child != null )
            {
                m_Child.Delete( );
            }

            IDamageableItem2 Idam = new IDamageableItem2( this );

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

            int version = reader.ReadInt( );

            m_Child = ( IDamageableItem2 )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( );
        }