PGMEBackend.Tile.Draw C# (CSharp) Method

Draw() public method

public Draw ( Spritesheet globalSheets, Spritesheet localSheets, int xPos, int yPos, double scale ) : void
globalSheets Spritesheet
localSheets Spritesheet
xPos int
yPos int
scale double
return void
        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);
            }
        }