dusk.buildMap()
This is Dusk's "root" function. It creates a Dusk map from data and returns it for your use.
fileName
: String, Dusk Map DataIf this is a string, Dusk reads the file at that location and builds the map. If it's a table, Dusk assumes it is map data loaded through dusk.loadMap()
and builds it accordingly. This means that you can load a map with dusk.loadMap()
, then edit the data, then create the map itself.