protected override void SaveSettings() { myStreakEmitterComponent.myEmitterXML = myEmitterXml.GetTextBox().Text; EntityEditorForm eForm = (EntityEditorForm)myOwnerForm; eForm.SetStreakEmitterComponent(myStreakEmitterComponent); }
protected override void SaveSettings() { EntityEditorForm eForm = (EntityEditorForm)myOwnerForm; if (myEntity.myAIComponent.myIsActive == true) { eForm.SetAIComponent(myEntity.myAIComponent); } if (myEntity.myCollisionComponent.myIsActive == true) { eForm.SetCollisionComponent(myEntity.myCollisionComponent); } if (myEntity.myGraphicsComponent.myIsActive == true) { eForm.SetGraphicsComponent(myEntity.myGraphicsComponent); } if (myEntity.myShootingComponent.myIsActive == true) { eForm.SetShootingComponent(myEntity.myShootingComponent); } if (myEntity.myHealthComponent.myIsActive == true) { eForm.SetHealthComponent(myEntity.myHealthComponent); } if (myEntity.myPhysicsComponent.myIsActive == true) { eForm.SetPhysicsComponent(myEntity.myPhysicsComponent); } if (myEntity.myBulletComponent.myIsActive == true) { eForm.SetBulletComponent(myEntity.myBulletComponent); } if (myEntity.myPowerUpComponent.myIsActive == true) { eForm.SetPowerUpComponent(myEntity.myPowerUpComponent); } if (myEntity.myParticleEmitterComponent.myIsActive == true) { eForm.SetParticleEmitterComponent(myEntity.myParticleEmitterComponent); } if (myEntity.mySoundComponent.myIsActive == true) { eForm.SetSoundComponent(myEntity.mySoundComponent); } if (myEntity.myStreakEmitterComponent.myIsActive == true) { eForm.SetStreakEmitterComponent(myEntity.myStreakEmitterComponent); } eForm.DisplayEntityData(); }