2019-07-14 16:46:57 +00:00
|
|
|
|
// <copyright file="AbstractColourPalette.cs" company="Adrian Conlon">
|
|
|
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
|
|
|
// </copyright>
|
2019-07-28 10:50:25 +00:00
|
|
|
|
namespace EightBit.GameBoy
|
2019-07-14 16:46:57 +00:00
|
|
|
|
{
|
2019-07-28 10:50:25 +00:00
|
|
|
|
public class AbstractColourPalette
|
2019-07-14 16:46:57 +00:00
|
|
|
|
{
|
2019-07-28 10:50:25 +00:00
|
|
|
|
private readonly uint[] colours = new uint[4];
|
2019-07-14 16:46:57 +00:00
|
|
|
|
|
2019-07-28 10:50:25 +00:00
|
|
|
|
protected AbstractColourPalette()
|
|
|
|
|
{
|
2019-07-14 16:46:57 +00:00
|
|
|
|
}
|
2019-07-28 10:50:25 +00:00
|
|
|
|
|
|
|
|
|
public uint Colour(int index) => this.colours[index];
|
2019-07-14 16:46:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|