Table of Contents

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

int

Name

Name of the layer.

string Name { get; }

Property Value

string

TileHeight

Height of a single tile in pixels.

int TileHeight { get; }

Property Value

int

TileWidth

Width of a single tile in pixels.

int TileWidth { get; }

Property Value

int

Width

Layer width in tiles.

int Width { get; }

Property Value

int

Methods

GetTileGid(int, int)

Returns the tile GID at the given coordinates. Returns 0 if out of bounds.

uint GetTileGid(int x, int y)

Parameters

x int
y int

Returns

uint