Table of Contents

Class Tilemap

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

Defines a Tilemap with zero or more TilemapLayer elements.

public sealed class Tilemap : IEnumerable<TilemapLayer>, IEnumerable
Inheritance
Tilemap
Implements
Inherited Members

Constructors

Tilemap(string)

Initializes a new instance of the Tilemap class.

Properties

this[int]

Gets the TilemapLayer element at the specified index in this Tilemap.

this[string]

Gets the TilemapLayer element with the specified name in this Tilemap.

LayerCount

Gets the total number of TilemapLayer elements in this Tilemap.

Name

Gets the name assigned to this Tilemap.

Methods

AddLayer(TilemapLayer)

Adds the given TilemapLayer element to this Tilemap.

Clear()

Removes all TilemapLayer elements from this Tilemap.

CreateLayer(string, Tileset, int, int, Vector2)

Creates a new TilemapLayer element and adds it to this Tilemap.

Draw(SpriteBatch, Vector2, Color)

Draws this Tilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

Draw(SpriteBatch, Vector2, Color, Vector2, float)

Draws this Tilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

Draw(SpriteBatch, Vector2, Color, float, float)

Draws this Tilemap using the Microsoft.Xna.Framework.Graphics.SpriteBatch.

GetEnumerator()

Returns an enumerator that iterates through the collection.

GetLayer(int)

Get the TilemapLayer element at the specified index in this Tilemap.

GetLayer(string)

Gets the TilemapLayer element with the specified name in this Tilemap.

RemoveLayer(TilemapLayer)

Removes the given TilemapLayer element from this Tilemap.

RemoveLayer(int)

Removes the TilemapLayer element at the specified index in this Tilemap.

RemoveLayer(string)

Removes the TilemapLayer element with the specified name from this Tilemap.

TryGetLayer(int, out TilemapLayer?)

Get the TilemapLayer element at the specified index in this Tilemap.

TryGetLayer(string, out TilemapLayer?)

Gets the TilemapLayer element with the specified name in this Tilemap.