public CharacterEntryViewModel(ISavePersona5 save, Character character, int index, IPersonaList personaList, ISkillList skillList, IEquipmentList equipmentList) :
     base(character.Persona.Select(x => new PersonaViewModel(x, personaList, skillList)))
 {
     _save          = save;
     _id            = (Characters)index;
     _character     = character;
     _equipmentList = equipmentList;
 }
Example #2
0
 public CharactersViewModel(
     ISavePersona5 save,
     IPersonaList personaList,
     ISkillList skillList,
     IEquipmentList equipmentList) :
     this(save.Characters.Select((_, i) => new CharacterEntryViewModel(save, save.Characters[i], i, personaList, skillList, equipmentList)))
 {
     _save = save;
 }