public NPCTypeData GetModel() { var ntd = new NPCTypeData() { Name = Name, Emotions = Emotions.Select(emo => emo.GetModel()) .ToList() }; return(ntd); }
public NPCTypeDataViewModel(NPCTypeData data) { Name = data.Name; Emotions = data.Emotions.Select(x => new NameAliasViewModel(x)) .ToList(); }