C# Class Nez.Tiled.TiledTileset

ファイルを表示 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_oe property

protected Dictionary _regions
return Subtexture>.Dictionary

firstId public_oe property

public int firstId
return int

margin public_oe property

public int margin
return int

properties public_oe property

public Dictionary properties
return string>.Dictionary

spacing public_oe property

public int spacing
return int

texture public_oe property

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

tileHeight public_oe property

public int tileHeight
return int

tileWidth public_oe property

public int tileWidth
return int

tiles public_oe property

public List tiles
return List