private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Project_Of_Death.Features.profile_death_dataFeature newClone = ((Articy.Project_Of_Death.Features.profile_death_dataFeature)(aClone)); newClone.mLocaKey_profile_death_news_third = mLocaKey_profile_death_news_third; newClone.mOverwritten_profile_death_news_third = mOverwritten_profile_death_news_third; newClone.mLocaKey_profile_death_news_second = mLocaKey_profile_death_news_second; newClone.mOverwritten_profile_death_news_second = mOverwritten_profile_death_news_second; if ((profile_death_instruction != null)) { newClone.profile_death_instruction = ((ArticyScriptInstruction)(profile_death_instruction.CloneObject(newClone, aFirstClassParent))); } newClone.profile_death_ecology_value = profile_death_ecology_value; newClone.mLocaKey_profile_death_news_first = mLocaKey_profile_death_news_first; newClone.mOverwritten_profile_death_news_first = mOverwritten_profile_death_news_first; newClone.profile_death_peace_value = profile_death_peace_value; newClone.profile_death_healthcare_value = profile_death_healthcare_value; newClone.profile_death_prosperity_value = profile_death_prosperity_value; mprofile_death_disabler.CustomClone(newClone.mprofile_death_disabler); mprofile_death_enabler.CustomClone(newClone.mprofile_death_enabler); newClone.OwnerId = OwnerId; }
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Project_Of_Death.Features.profile_death_dataFeature clone = new Articy.Project_Of_Death.Features.profile_death_dataFeature(); CloneProperties(clone, aFirstClassParent); return(clone); }