public Items(int index, ISO iso) { this.index = index; this.iso = iso; var pocketFsys = iso.GetFSysFile("pocket_menu.fsys"); var pocketFileName = iso.Region == Region.Europe ? "(null).msg" : "pocket_menu.msg"; pocketMenu = pocketFsys.GetEntryByFileName(pocketFileName) as StringTable; }
public XDTrainerPool(TrainerPoolType poolType, ISO iso, Pokemon[] pokemon, Move[] moveList) { var deckArchive = iso.GetFSysFile("deck_archive.fsys"); var fileEntryName = iso.Region == Region.Europe ? $"DeckData_{poolType}_EU.bin" : $"DeckData_{poolType}.bin"; var fileEntry = deckArchive.GetEntryByFileName(fileEntryName); this.iso = iso; ExtractedFile = fileEntry.ExtractedFile; FileType = FileTypes.BIN; TeamType = poolType; PokemonList = pokemon; MoveList = moveList; }