Class MapAsset

Stores a map.

Functions

MapAsset.new (path) Loads a new map from a path.

Methods

MapAsset:set_dark (Dark) Sets the darkness mode of the map.
MapAsset:set_name (name) Sets the name of the map.
MapAsset:get_objects () Gets the objects in the map.
MapAsset:register () Finalizes a MapAsset object and returns a Map id.


Functions

Methods
MapAsset.new (path)
Loads a new map from a path.

Parameters:

  • path string The path of the map to load

Returns:

    MapAsset the new map

Methods

MapAsset:set_dark (Dark)
Sets the darkness mode of the map.

Parameters:

  • Dark boolean True if the map should be dark.
MapAsset:set_name (name)
Sets the name of the map.

Parameters:

  • name string The new name of the map
MapAsset:get_objects ()
Gets the objects in the map.

Returns:

    MapObject[] A list of the objects in the map
MapAsset:register ()
Finalizes a MapAsset object and returns a Map id.

Returns:

    integer The id of the created map.
generated by LDoc 1.5.0 Last updated 2024-05-23 11:40:37