public EquipmentEntryModel(MateriaEquipment equipment, MateriaViewModel vm) { _equipment = equipment; _materiaVm = vm; EquipmentType = ItemModel.GetItemModels(); CharacterTypes = new KhEnumListModel <CharacterType>(() => Character, x => Character = x); }
public SystemViewModel(ISaveKh3 save) { this.save = save; Difficulty = new KhEnumListModel <DifficultyType>(() => save.Difficulty, x => save.Difficulty = x); WorldIcon = new KhEnumListModel <WorldType>(() => save.WorldLogo, x => save.WorldLogo = x); Location = new KhEnumListModel <LocationType>(() => save.LocationName, x => save.LocationName = x); CharacterIcon = new KhEnumListModel <CharacterIconType>(() => save.BaseSaveIcon, x => { save.BaseSaveIcon = x; save.DlcSaveIcon = x; }); Maps = Lib3.Presets.Presets.MAPS.Select(x => new MapViewModel(x.Key, x.Value)).ToList(); PlayableCharacters = Lib3.Presets.Presets.PlayablePawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.PlayablePawnPath, x.Key) }) .Concat(Lib3.Presets.Presets.NpcPawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.NpcPawnPath, x.Key) })) .Concat(Lib3.Presets.Presets.EnemyPawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.EnemyPawnPath, x.Key) })) .ToArray(); }
public SystemViewModel(ISaveKh3 save) { this.save = save; Difficulty = new KhEnumListModel <DifficultyType>(() => save.Difficulty, x => save.Difficulty = x); WorldIcon = new KhEnumListModel <WorldType>(() => save.WorldLogo, x => save.WorldLogo = x); Location = new KhEnumListModel <LocationType>(() => save.LocationName, x => save.LocationName = x); CharacterIcon = new KhEnumListModel <CharacterIconType>(() => save.MySaveIcon, x => save.MySaveIcon = x); RoomWorld = new KhEnumListModel <GenericEntryModel <string, string>, WorldType, string>( () => RoomWorldId, x => RoomWorldId = x, x => WorldAttribute.GetWorldId(x)); Maps = Lib3.Presets.Presets.MAPS.Select(x => new MapViewModel(x.Key, x.Value)).ToList(); PlayableCharacters = Lib3.Presets.Presets.PlayablePawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.PlayablePawnPath, x.Key) }) .Concat(Lib3.Presets.Presets.NpcPawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.NpcPawnPath, x.Key) })) .Concat(Lib3.Presets.Presets.EnemyPawns.Select(x => new SpawnModel { Name = x.Value.Name, Value = string.Format(Lib3.Presets.Presets.EnemyPawnPath, x.Key) })) .ToArray(); }
public MateriaEntryModel(Materia materia) { _materia = materia; ItemType = ItemModel.GetItemModels(); CharacterType = new KhEnumListModel <CharacterType>(() => Character, x => Character = x); }
public SystemViewModel(ISaveKhBbs save) { this.save = save; Difficulty = new KhEnumListModel <DifficultyType>(() => save.Difficulty, x => save.Difficulty = x); Character = new KhEnumListModel <CharacterType>(() => save.PlayableCharacter, x => save.PlayableCharacter = x); Worlds = new KhEnumListModel <WorldType>(); }
public SystemViewModel(ISaveKh2 save) { this.save = save; ShortcutItems = new KhEnumListModel <EnumIconTypeModel <CommandType>, CommandType>(() => default(CommandType), x => { }); Difficulty = new KhEnumListModel <Difficulty>(() => save.Difficulty, x => save.Difficulty = x); Worlds = new KhEnumListModel <WorldType>(); }
public MateriaEntryModel(SaveFf7Remake save, Materia materia) { _save = save; _materia = materia; ItemType = ItemModel.GetItemModels(); CharacterType = new KhEnumListModel <CharacterType>(() => Character, x => Character = x); }
public EquipmentEntryModel(int index, WeaponFound[] weaponFound, MateriaEquipment equipment, MateriaViewModel vm) { _arrayIndex = index; _weaponFound = weaponFound; _equipment = equipment; _materiaVm = vm; EquipmentType = ItemModel.GetItemModels(); CharacterTypes = new KhEnumListModel <CharacterType>(() => Character, x => Character = x); }
public SystemViewModel(SaveKh2.SaveFinalMix save) { this.save = save; ShortcutItems = new KhEnumListModel <EnumIconTypeModel <CommandType>, CommandType>(() => default(CommandType), x => { }); Pc0 = new KhEnumListModel <PlayableCharacterType>(() => save.PlayableCharacter, x => save.PlayableCharacter = x); Pc1 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter1, x => save.CompanionCharacter1 = x); Pc2 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter2, x => save.CompanionCharacter2 = x); Pc3 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter3, x => save.CompanionCharacter3 = x); Difficulty = new KhEnumListModel <Difficulty>(() => save.Difficulty, x => save.Difficulty = x); }
public SystemViewModel(ISaveKh1 save) { this.save = save; ShortcutItems = new KhEnumListModel <EnumIconTypeModel <CommandType>, CommandType>(() => default(CommandType), x => { }); Pc0 = new KhEnumListModel <PlayableCharacterType>(() => save.PlayableCharacter, x => save.PlayableCharacter = x); Pc1 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter1, x => save.CompanionCharacter1 = x); Pc2 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter2, x => save.CompanionCharacter2 = x); Pc3 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter3, x => save.CompanionCharacter3 = x); Abilities = new KhEnumListModel <AbilityType>(); DifficultiesFm = new KhEnumListModel <DifficultyFm>(() => save.Difficulty, x => save.Difficulty = x); }
public SystemViewModel(SaveKh3 save) { this.save = save; Difficulty = new KhEnumListModel <DifficultyType>(() => save.Difficulty, x => save.Difficulty = x); WorldIcon = new KhEnumListModel <WorldType>(() => save.WorldLogo, x => save.WorldLogo = x); Location = new KhEnumListModel <LocationType>(() => save.LocationName, x => save.LocationName = x); CharacterIcon = new KhEnumListModel <CharacterIconType>(() => save.MySaveIcon, x => save.MySaveIcon = x); RoomWorld = new KhEnumListModel <GenericEntryModel <string, string>, WorldType, string>( () => RoomWorldId, x => RoomWorldId = x, x => WorldAttribute.GetWorldId(x)); DesireChoice = new KhEnumListModel <DesireChoice>(() => save.DesireChoice, x => save.DesireChoice = x); PowerChoice = new KhEnumListModel <PowerChoice>(() => save.PowerChoice, x => save.PowerChoice = x); }
public SystemViewModel(ISaveKh1 save, IGetAbilities getAbilities) { this.save = save; _getAbilities = getAbilities; ShortcutItems = new KhEnumListModel <EnumIconTypeModel <CommandType>, CommandType>(() => default(CommandType), x => { }); Pc0 = new KhEnumListModel <PlayableCharacterType>(() => save.PlayableCharacter, x => save.PlayableCharacter = x); Pc1 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter1, x => save.CompanionCharacter1 = x); Pc2 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter2, x => save.CompanionCharacter2 = x); Pc3 = new KhEnumListModel <PlayableCharacterType>(() => save.CompanionCharacter3, x => save.CompanionCharacter3 = x); Difficulties = save.IsFinalMix ? GetDifficulty <DifficultyFm>() : GetDifficulty <Difficulty>(); Worlds = new KhEnumListModel <WorldType>(); SharedAbility1 = new AbilityViewModel(save.SharedAbilities, 0, getAbilities); SharedAbility2 = new AbilityViewModel(save.SharedAbilities, 1, getAbilities); SharedAbility3 = new AbilityViewModel(save.SharedAbilities, 2, getAbilities); SharedAbility4 = new AbilityViewModel(save.SharedAbilities, 3, getAbilities); }
public WorldViewModel(ISaveKh2 save, int index) { _save = save; _world = (WorldType)index; Pc0 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].PlayableCharacter, x => save.WorldPartyMembers[index].PlayableCharacter = x); Pc1 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter1, x => save.WorldPartyMembers[index].CompanionCharacter1 = x); Pc2 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter2, x => save.WorldPartyMembers[index].CompanionCharacter2 = x); Pc3 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter3, x => save.WorldPartyMembers[index].CompanionCharacter3 = x); }
public SlotViewModel(int slotIndex, Slot slot) { this.slotIndex = slotIndex; this.slot = slot; Name = $"Slot {slotIndex}"; Value = this; Difficulty = new KhEnumListModel <DifficultyType>(() => slot.Difficulty, x => slot.Difficulty = x); Location = new KhEnumListModel <LocationType>(() => slot.Location, x => slot.Location = x); Maps = new KhEnumListModel <MapType>( () => Enum.TryParse <MapType>(CurrentMap, out var result) ? result : default(MapType), x => MapInfoAttribute.GetMapId(x), x => InfoAttribute.GetInfo(x)); SpawnPoints = new KhEnumListModel <SpawnType>( () => Enum.TryParse <SpawnType>(MapSpawn, out var result) ? result : default(SpawnType), x => x.ToString()); }
public void RefreshUi() { Equipments = new KhEnumListModel <EnumIconTypeModel <EquipmentType>, EquipmentType>(); System = new SystemViewModel(save); Character = new CharacterViewModel(save, this); Commands = new CommandsViewModel(save.CommandInventory, this); DreamEaters = new DreamEatersViewModel(save.DreamEaters); SoraDecks = new DecksViewModel(save.SoraDecks); RikuDecks = new DecksViewModel(save.RikuDecks); OnPropertyChanged(nameof(System)); OnPropertyChanged(nameof(Character)); OnPropertyChanged(nameof(Commands)); OnPropertyChanged(nameof(DreamEater)); OnPropertyChanged(nameof(Deck)); }
public WorldViewModel(ISaveKh2 save, int index) { _save = save; _world = (WorldType)index; Pc0 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].PlayableCharacter, x => save.WorldPartyMembers[index].PlayableCharacter = x); Pc1 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter1, x => save.WorldPartyMembers[index].CompanionCharacter1 = x); Pc2 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter2, x => save.WorldPartyMembers[index].CompanionCharacter2 = x); Pc3 = new KhEnumListModel <PlayableCharacterType>( () => save.WorldPartyMembers[index].CompanionCharacter3, x => save.WorldPartyMembers[index].CompanionCharacter3 = x); Scripts = Enumerable.Range(0, 64) .Select(x => new MapScriptModel(_world, x, _save.PlaceScripts[(int)_world * 64 + x])) .ToList(); }
public SystemViewModel(ISaveKhDDD save) { this.save = save; Difficulty = new KhEnumListModel <DifficultyType>(() => save.Difficulty, x => save.Difficulty = x); Worlds = new KhEnumListModel <WorldType>(); }
internal EquipmentItemViewModel(EquipmentItemsViewModel vm, byte index) { _vm = vm; _index = index; ValueSet = new KhEnumListModel <EnumIconTypeModel <EquipmentType>, EquipmentType>(() => Equipment, value => Equipment = value); }
public GlobalViewModel(SaveFf7Remake save) { _save = save; CharacterType = new KhEnumListModel <CharacterType>(); }
public Kh1ViewModel() { Abilities = new KhEnumListModel <AbilityType>(); }
public DreamEaterViewModel(DreamEater dreamEater) { this.dreamEater = dreamEater; DreamEaterTypes = new KhEnumListModel <DreamEaterType>(); }
public Unknown3ViewModel(SaveFf7Remake save) { _save = save; CharacterTypes = new KhEnumListModel <CharacterType>(); }