Constructor


TileLayer(map: Map, data: number)

Arguments:

map: Map

Stores and manages the currently loaded map.
If a map in scrips/world/maps is defined as a folder, map data can be placed in data.lua, and a file named map.lua can be used to define a custom Map object for that map.

data: number




Methods




TileLayer:getTile(x: any, y: any)

Arguments:

x: any
y: any

Returns:

1: Tileset|nil
2: integer






TileLayer:setTile(x: any, y: any, tileset: any, ...: unknown)

Arguments:

x: any
y: any
tileset: any
...: unknown



Fields






Undocumented





TileLayer.map: Map

Stores and manages the currently loaded map.
If a map in scrips/world/maps is defined as a folder, map data can be placed in data.lua, and a file named map.lua can be used to define a custom Map object for that map.