private void ProvideEntity() { if (m_Child != null) { m_Child.Delete(); } IDestroyableItem Idam = new IDestroyableItem(this); if (Idam != null && !Idam.Deleted && this.Map != null) { m_Child = Idam; m_Child.Update(); } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt( ); m_Child = ( IDestroyableItem )reader.ReadMobile( ); m_StartID = ( int )reader.ReadInt( ); m_HalfHitsID = ( int )reader.ReadInt( ); m_DestroyedID = ( int )reader.ReadInt( ); m_Hits = ( int )reader.ReadInt( ); m_HitsMax = ( int )reader.ReadInt( ); Movable = ( bool )reader.ReadBool( ); }