public void Draw(Spritesheet[] globalSheets, Spritesheet[] localSheets, int xPos, int yPos, double scale)
{
if (index < Program.currentGame.MainTSSize)
{
if (globalSheets != null && globalSheets[palette] != null)
globalSheets[palette].Draw(index, xPos, yPos, xFlip, yFlip, scale);
else
Surface.DrawRect(xPos, yPos, 8, 8, Color.Black);
}
else
{
if (localSheets != null && localSheets[palette] != null)
localSheets[palette].Draw(index - Program.currentGame.MainTSSize, xPos, yPos, xFlip, yFlip, scale);
else
Surface.DrawRect(xPos, yPos, 8, 8, Color.Black);
}
}