Interface IMapLayer
- Namespace
- MoonBark.GridPlacement.Core.Interfaces
- Assembly
- MoonBark.GridPlacement.Core.dll
Generic abstraction for a grid-based map layer. GridPlacement has no reference to Tiled or any specific map format.
public interface IMapLayer
Properties
Height
Layer height in tiles.
int Height { get; }
Property Value
Name
Name of the layer.
string Name { get; }
Property Value
TileHeight
Height of a single tile in pixels.
int TileHeight { get; }
Property Value
TileWidth
Width of a single tile in pixels.
int TileWidth { get; }
Property Value
Width
Layer width in tiles.
int Width { get; }
Property Value
Methods
GetTileGid(int, int)
Returns the tile GID at the given coordinates. Returns 0 if out of bounds.
uint GetTileGid(int x, int y)