private void CloneProperties(object aClone, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Project_Of_Death.Features.dayFeature newClone = ((Articy.Project_Of_Death.Features.dayFeature)(aClone)); if ((mday_task_slot != null)) { newClone.mday_task_slot = ((ArticyValueArticyObject)(mday_task_slot.CloneObject(newClone, aFirstClassParent))); } if ((mday_news_slot != null)) { newClone.mday_news_slot = ((ArticyValueArticyObject)(mday_news_slot.CloneObject(newClone, aFirstClassParent))); } if ((mday_fate_slot != null)) { newClone.mday_fate_slot = ((ArticyValueArticyObject)(mday_fate_slot.CloneObject(newClone, aFirstClassParent))); } newClone.OwnerId = OwnerId; }
public object CloneObject(object aParent, Articy.Unity.ArticyObject aFirstClassParent) { Articy.Project_Of_Death.Features.dayFeature clone = new Articy.Project_Of_Death.Features.dayFeature(); CloneProperties(clone, aFirstClassParent); return(clone); }