C# Class Nez.Tiled.TiledTileset

Show file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
firstId int
margin int
properties string>.Dictionary
spacing int
texture Microsoft.Xna.Framework.Graphics.Texture2D
tileHeight int
tileWidth int
tiles List

Protected Properties

Property Type Description
_regions Subtexture>.Dictionary

Public Methods

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 ) : Subtexture

gets the Subtexture for the tile with id

Method Details

TiledTileset() public method

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

TiledTileset() public method

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

getTileTextureRegion() public method

gets the Subtexture for the tile with id
public getTileTextureRegion ( int id ) : Subtexture
id int Identifier.
return Nez.Textures.Subtexture

Property Details

_regions protected property

protected Dictionary _regions
return Subtexture>.Dictionary

firstId public property

public int firstId
return int

margin public property

public int margin
return int

properties public property

public Dictionary properties
return string>.Dictionary

spacing public property

public int spacing
return int

texture public property

public Texture2D,Microsoft.Xna.Framework.Graphics texture
return Microsoft.Xna.Framework.Graphics.Texture2D

tileHeight public property

public int tileHeight
return int

tileWidth public property

public int tileWidth
return int

tiles public property

public List tiles
return List