public DriveFormViewModel(IDriveForm driveForm, DriveFormType type, IResourceGetter resourceGetter)
 {
     _driveForm      = driveForm;
     _type           = type;
     _resourceGetter = resourceGetter;
     Abilities       = _driveForm.Abilities.Select((_, i) => new AbilityModel(i, _driveForm.Abilities, resourceGetter)).ToList();
 }
Exemplo n.º 2
0
 public DriveFormViewModel(IDriveForm driveForm, DriveFormType type)
 {
     _driveForm = driveForm;
     _type      = type;
     Weapon     = new ItemComboBoxModel <EquipmentType>(() => _driveForm.Weapon, x => _driveForm.Weapon = x);
     Abilities  = _driveForm.Abilities.Select((_, i) => new AbilityModel(i, _driveForm.Abilities)).ToList();
 }