docs for table properties
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Zsolt Tasnadi
2026-02-26 10:21:48 +01:00
parent 64de41a940
commit 8f34cbf875
7 changed files with 99 additions and 4 deletions

View File

@@ -18,6 +18,13 @@ end
--- Registers a map definition.
--- @within Map
-- @param map_data table The map data table.
-- @param map_data.id string Unique map identifier.
-- @param map_data.from_x number Source tile X coordinate in the map sheet.
-- @param map_data.from_y number Source tile Y coordinate in the map sheet.
-- @param map_data.width number Width in tiles.
-- @param map_data.height number Height in tiles.
-- @param map_data.to_x number Destination X coordinate on screen.
-- @param map_data.to_y number Destination Y coordinate on screen.
function Map.register(map_data)
if _maps[map_data.id] then
trace("Warning: Overwriting map with id: " .. map_data.id)