Property | Type | Description | |
---|---|---|---|
firstId | int | ||
margin | int | ||
properties | string>.Dictionary | ||
spacing | int | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
tileHeight | int | ||
tileWidth | int | ||
tiles | List |
Property | Type | Description | |
---|---|---|---|
_regions | Subtexture>.Dictionary |
Method | Description | |
---|---|---|
TiledTileset ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int firstId ) : System.Collections.Generic | ||
TiledTileset ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int firstId, int tileWidth, int tileHeight, int spacing = 2, int margin = 2 ) : System.Collections.Generic | ||
getTileTextureRegion ( int id ) : |
gets the Subtexture for the tile with id
|
public TiledTileset ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int firstId ) : System.Collections.Generic | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
firstId | int | |
return | System.Collections.Generic |
public TiledTileset ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int firstId, int tileWidth, int tileHeight, int spacing = 2, int margin = 2 ) : System.Collections.Generic | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
firstId | int | |
tileWidth | int | |
tileHeight | int | |
spacing | int | |
margin | int | |
return | System.Collections.Generic |
public getTileTextureRegion ( int id ) : |
||
id | int | Identifier. |
return |
public Texture2D,Microsoft.Xna.Framework.Graphics texture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |