Property | Type | Description | |
---|---|---|---|
mIndices | int[] | ||
mIndices | short[] | ||
mTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
mTileset | |||
mVertices | Microsoft.Xna.Framework.Graphics.VertexPositionTexture[] |
Property | Type | Description | |
---|---|---|---|
FromReducedLayer | |||
FromReducedLayer | |||
GetRenderingIndexValues | void | ||
PrepareRenderingStates | |||
RegisterName | void | ||
VerifySingleTexture | void |
Method | Description | |
---|---|---|
AddTile ( Vector3 bottomLeftPosition, Vector2 dimensions, Vector4 texture ) : int |
Adds a tile to the tile map
|
|
AddTile ( Vector3 bottomLeftPosition, Vector2 tileDimensions, int textureTopLeftX, int textureTopLeftY, int textureBottomRightX, int textureBottomRightY ) : int |
Add a tile to the map
|
|
AddTile ( Vector3 bottomLeftPosition, Vector2 dimensions, Vector4 texture ) : void |
Adds a tile to the tile map
|
|
AddTile ( Vector3 bottomLeftPosition, Vector2 tileDimensions, int textureTopLeftX, int textureTopLeftY, int textureBottomRightX, int textureBottomRightY ) : void |
Add a tile to the map
|
|
AddToManagers ( ) : void | ||
AddToManagers ( Layer layer ) : void | ||
ApplyDiagonalFlip ( int orderedTileIndex ) : void | ||
Clone ( ) : |
||
Destroy ( ) : void |
Don't call this, instead call SpriteManager.RemoveDrawableBatch
|
|
Draw ( |
Custom drawing technique - sets graphics states and draws the custom shape
|
|
FromScnx ( string sceneFileName, string contentManagerName, bool verifySameTexturePerLayer ) : |
||
FromSpriteSaves ( List |
||
GetBottomLeftWorldCoordinateForOrderedTile ( int orderedTileIndex, float &x, float &y ) : void | ||
GetFirstAfterX ( |
||
GetFirstAfterY ( |
||
GetTextureCoordiantesForOrderedTile ( int orderedTileIndex, float &textureX, float &textureY ) : void | ||
MapDrawableBatch ( ) : System | ||
MapDrawableBatch ( int numberOfTiles, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System | ||
MapDrawableBatch ( int numberOfTiles, int textureTileDimensionWidth, int textureTileDimensionHeight, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System |
Create and initialize all assets
|
|
MergeOntoThis ( IEnumerable |
||
PaintTile ( int orderedTileIndex, int newTextureId ) : void |
Paints a texture on a tile. This method takes the index of the Sprite in the order it was added to the MapDrawableBatch, so it supports any configuration including non-rectangular maps and maps with gaps.
|
|
PaintTile ( int row, int column, int newTextureId ) : void |
Paints a texture on a tile. This method assumes that the MapDrawableBatch is a perfect recangle with no gaps, and that all tiles have been added left to right, top to bottom.
|
|
PaintTileTextureCoordinates ( int orderedTileIndex, float textureXCoordinate, float textureYCoordinate ) : void | ||
Paste ( Sprite sprite, bool setZTo0 ) : int | ||
Paste ( SpriteSave spriteSave, bool setZTo0 ) : int | ||
Paste ( Sprite sprite ) : void | ||
Paste ( SpriteSave spriteSave ) : void | ||
RemoveQuads ( IEnumerable |
||
RotateTextureCoordinatesCounterclockwise ( int orderedTileIndex ) : void | ||
Update ( ) : void |
Here we update our batch - but this batch doesn't need to be updated
|
Method | Description | |
---|---|---|
InternalInitialize ( ) : void |
Method | Description | |
---|---|---|
FromReducedLayer ( TMXGlueLib reducedLayerInfo, |
||
FromReducedLayer ( TMXGlueLib reducedLayerInfo, string contentManagerName, int tileDimensionWidth, int tileDimensionHeight, float quadWidth, float quadHeight ) : |
||
GetRenderingIndexValues ( |
||
PrepareRenderingStates ( |
||
RegisterName ( string name, int tileIndex ) : void | ||
VerifySingleTexture ( List |
public AddTile ( Vector3 bottomLeftPosition, Vector2 dimensions, Vector4 texture ) : int | ||
bottomLeftPosition | Vector3 | |
dimensions | Vector2 | |
texture | Vector4 | /// 4 points defining the boundaries in the texture for the tile. /// (X = left, Y = right, Z = top, W = bottom) /// |
return | int |
public AddTile ( Vector3 bottomLeftPosition, Vector2 tileDimensions, int textureTopLeftX, int textureTopLeftY, int textureBottomRightX, int textureBottomRightY ) : int | ||
bottomLeftPosition | Vector3 | |
tileDimensions | Vector2 | |
textureTopLeftX | int | Top left X coordinate in the core texture |
textureTopLeftY | int | Top left Y coordinate in the core texture |
textureBottomRightX | int | Bottom right X coordinate in the core texture |
textureBottomRightY | int | Bottom right Y coordinate in the core texture |
return | int |
public AddTile ( Vector3 bottomLeftPosition, Vector2 dimensions, Vector4 texture ) : void | ||
bottomLeftPosition | Vector3 | |
dimensions | Vector2 | |
texture | Vector4 | /// 4 points defining the boundaries in the texture for the tile. /// (X = left, Y = right, Z = top, W = bottom) /// |
return | void |
public AddTile ( Vector3 bottomLeftPosition, Vector2 tileDimensions, int textureTopLeftX, int textureTopLeftY, int textureBottomRightX, int textureBottomRightY ) : void | ||
bottomLeftPosition | Vector3 | |
tileDimensions | Vector2 | |
textureTopLeftX | int | Top left X coordinate in the core texture |
textureTopLeftY | int | Top left Y coordinate in the core texture |
textureBottomRightX | int | Bottom right X coordinate in the core texture |
textureBottomRightY | int | Bottom right Y coordinate in the core texture |
return | void |
public ApplyDiagonalFlip ( int orderedTileIndex ) : void | ||
orderedTileIndex | int | |
return | void |
public Draw ( |
||
camera | The currently drawing camera | |
return | void |
public static FromScnx ( string sceneFileName, string contentManagerName, bool verifySameTexturePerLayer ) : |
||
sceneFileName | string | |
contentManagerName | string | |
verifySameTexturePerLayer | bool | |
return |
public static FromSpriteSaves ( List |
||
spriteSaveList | List |
|
startingIndex | int | |
count | int | |
contentManagerName | string | |
verifySameTexturesPerLayer | bool | |
return |
public GetBottomLeftWorldCoordinateForOrderedTile ( int orderedTileIndex, float &x, float &y ) : void | ||
orderedTileIndex | int | |
x | float | |
y | float | |
return | void |
public static GetFirstAfterX ( |
||
list | ||
xGreaterThan | float | |
return | int |
public static GetFirstAfterY ( |
||
list | ||
yGreaterThan | float | |
return | int |
public GetTextureCoordiantesForOrderedTile ( int orderedTileIndex, float &textureX, float &textureY ) : void | ||
orderedTileIndex | int | |
textureX | float | |
textureY | float | |
return | void |
public MapDrawableBatch ( int numberOfTiles, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System | ||
numberOfTiles | int | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | System |
public MapDrawableBatch ( int numberOfTiles, int textureTileDimensionWidth, int textureTileDimensionHeight, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System | ||
numberOfTiles | int | |
textureTileDimensionWidth | int | |
textureTileDimensionHeight | int | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | System |
public MergeOntoThis ( IEnumerable |
||
mapDrawableBatches | IEnumerable |
|
return | void |
public PaintTile ( int orderedTileIndex, int newTextureId ) : void | ||
orderedTileIndex | int | The index of the tile to paint - this matches the index of the tile as it was added. |
newTextureId | int | |
return | void |
public PaintTile ( int row, int column, int newTextureId ) : void | ||
row | int | The row (y) index, base 0 |
column | int | The column (x) index, base 0 |
newTextureId | int | The texture ID, which is a left to right, top to bottom index |
return | void |
public PaintTileTextureCoordinates ( int orderedTileIndex, float textureXCoordinate, float textureYCoordinate ) : void | ||
orderedTileIndex | int | |
textureXCoordinate | float | |
textureYCoordinate | float | |
return | void |
public Paste ( Sprite sprite, bool setZTo0 ) : int | ||
sprite | Sprite | |
setZTo0 | bool | |
return | int |
public Paste ( SpriteSave spriteSave, bool setZTo0 ) : int | ||
spriteSave | SpriteSave | |
setZTo0 | bool | |
return | int |
public Paste ( SpriteSave spriteSave ) : void | ||
spriteSave | SpriteSave | |
return | void |
public RemoveQuads ( IEnumerable |
||
quadIndexes | IEnumerable |
|
return | void |
public RotateTextureCoordinatesCounterclockwise ( int orderedTileIndex ) : void | ||
orderedTileIndex | int | |
return | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics mTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |