Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }