EightBitNet/LR35902/AbstractColourPalette.cs
Adrian Conlon fc84e05839 Turn the AbstractColourPalette into a templated class, so I can use Monogame "Color" type later on.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-28 23:43:22 +01:00

17 lines
402 B
C#

// <copyright file="AbstractColourPalette.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace EightBit.GameBoy
{
public class AbstractColourPalette<T>
{
protected AbstractColourPalette()
{
}
protected T[] Colours { get; } = new T[4];
public T Colour(int index) => this.Colours[index];
}
}