protected BulkStorage(byte[] data, Type t, int start, int slotsPerBox = 30) : base(data) { Box = start; SlotsPerBox = slotsPerBox; blank = PKMConverter.GetBlank(t); var slots = (Data.Length - Box) / blank.SIZE_STORED; BoxCount = slots / SlotsPerBox; GetIsPKMPresent = PKX.GetFuncIsPKMPresent(blank); }
protected BulkStorage(byte[] data, Type t, int start, int slotsPerBox = 30) { Box = start; Data = data; SlotsPerBox = slotsPerBox; blank = PKMConverter.GetBlank(t); var slots = (Data.Length - Box) / blank.SIZE_STORED; BoxCount = slots / SlotsPerBox; Exportable = !IsRangeEmpty(0, Data.Length); BAK = (byte[])Data.Clone(); GetIsPKMPresent = PKX.GetFuncIsPKMPresent(blank); }