//If the child Link is not at our location, bring it back! public override void OnLocationChange(Point3D oldLocation) { if (this.Location != oldLocation) { if (m_Child != null && !m_Child.Deleted) { if (m_Child.Location == oldLocation) { m_Child.Update( ); } } } base.OnLocationChange(oldLocation); }
//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( ); } }
//Provides the Parent Item (this) with a new Entity Link private 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( ); } }