Method | Description | |
---|---|---|
Draw ( |
Draw the tile rectangles
|
|
SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void |
Sets the texture to draw the decal with
|
|
SetTileRectangles ( List |
Set the TileRectangles to draw
|
|
TileRectangleDrawer ( int tileSize ) : System |
Initialises a new TileRectangle drawer
|
Method | Description | |
---|---|---|
Get1x1SourceRect ( |
Pick a random source rectangle for a 1x1 tile
|
|
Get1x2SourceRect ( |
Pick a random source rectangle for a 1x2 tile
|
|
Get2x1SourceRect ( |
Pick a random source rectangle for a 2x1 tile
|
|
Get2x2SourceRect ( |
Pick a random source rectangle for a 2x2 tile
|
public Draw ( |
||
spriteBatch | Spritebatch to draw on | |
return | void |
public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture to use |
return | void |
public SetTileRectangles ( List |
||
newTiles | List |
A list of TileRectangles to draw |
return | void |
public TileRectangleDrawer ( int tileSize ) : System | ||
tileSize | int | |
return | System |