コード例 #1
0
    public NPCTypeData GetModel()
    {
        var ntd = new NPCTypeData()
        {
            Name     = Name,
            Emotions = Emotions.Select(emo => emo.GetModel())
                       .ToList()
        };

        return(ntd);
    }
コード例 #2
0
 public NPCTypeDataViewModel(NPCTypeData data)
 {
     Name     = data.Name;
     Emotions = data.Emotions.Select(x => new NameAliasViewModel(x))
                .ToList();
 }