コード例 #1
0
 public CharactersViewModel(SaveFf7Remake save, EquipmentsViewModel weapons, MateriaViewModel materia) :
     this(save.Characters.Select((_, i) => new CharacterEntryModel(save, i, weapons, materia)))
 {
     _save = save;
 }
コード例 #2
0
 public EquipmentsViewModel(IEnumerable <MateriaEquipment> equipments, MateriaViewModel materiaVm) :
     this(equipments.Select(x => new EquipmentEntryModel(x, materiaVm)))
 {
 }
コード例 #3
0
 public EquipmentsViewModel(WeaponFound[] weaponFound, IEnumerable <MateriaEquipment> equipments, MateriaViewModel materiaVm) :
     this(equipments.Select((x, i) => new EquipmentEntryModel(i, weaponFound, x, materiaVm)))
 {
 }