Beispiel #1
0
 private void CloneProperties(object aClone)
 {
     Articy.ManiacManfred.Features.CharacterFeature newClone = ((Articy.ManiacManfred.Features.CharacterFeature)(aClone));
     newClone.Age             = Age;
     newClone.VoiceActor      = VoiceActor;
     newClone.BackgroundStory = BackgroundStory;
     newClone.Motivation      = Motivation;
     mLikes.CustomClone(newClone.mLikes);
     mDislikes.CustomClone(newClone.mDislikes);
     mLikedBy.CustomClone(newClone.mLikedBy);
     mDislikedBy.CustomClone(newClone.mDislikedBy);
 }
Beispiel #2
0
 public object CloneObject()
 {
     Articy.ManiacManfred.Features.CharacterFeature clone = new Articy.ManiacManfred.Features.CharacterFeature();
     CloneProperties(clone);
     return(clone);
 }