public void Read(Reader reader, int Columns) { int palColumns = Columns; Colors = new PaletteColour[palColumns][]; for (int i = 0; i < palColumns; i++) { Colors[i] = new PaletteColour[COLORS_PER_COLUMN]; for (int j = 0; j < COLORS_PER_COLUMN; ++j) { Colors[i][j] = new PaletteColour(reader); } } }
public void Read(Reader reader) { int palColumns = ((int)reader.BaseStream.Length / 8) / 6; Colors = new PaletteColour[palColumns][]; for (int i = 0; i < palColumns; i++) { Colors[i] = new PaletteColour[COLORS_PER_COLUMN]; for (int j = 0; j < COLORS_PER_COLUMN; ++j) { Colors[i][j] = new PaletteColour(reader); } } }
public Palette(int pc = 2) { int palColumns = pc; Colors = new PaletteColour[palColumns][]; for (int i = 0; i < palColumns; i++) { Colors[i] = new PaletteColour[COLORS_PER_COLUMN]; for (int j = 0; j < COLORS_PER_COLUMN; ++j) { Colors[i][j] = new PaletteColour(); } } }