public XDPokeBox(IPokePC pokePC, byte boxNumber, byte[] data) { this.pokePC = pokePC; this.raw = data; this.boxNumber = boxNumber; this.wallpaper = (PokeBoxWallpapers)boxNumber; this.pokemonStorage = new PokemonStorage(ByteHelper.SubByteArray(20, data, 196 * 30), PokemonFormatTypes.Gen3XD, this); }
public GBAPokeBox(IPokePC pokePC, uint boxNumber, byte[] rawName, PokeBoxWallpapers wallpaper) { this.pokePC = pokePC; this.boxNumber = boxNumber; this.rawName = rawName; this.wallpaper = wallpaper; this.pokemonStorage = new PokemonStorage(new byte[2400], PokemonFormatTypes.Gen3GBA, this); }
public GBAPokeBox(IPokePC pokePC, uint boxNumber, byte[] rawName, PokeBoxWallpapers wallpaper, byte[] storage) { if (storage.Length != 2400) { throw new Exception("GBA Storage size should be 2400 bytes"); } this.pokePC = pokePC; this.boxNumber = boxNumber; this.rawName = rawName; this.wallpaper = wallpaper; this.pokemonStorage = new PokemonStorage(storage, PokemonFormatTypes.Gen3GBA, this); }