Module map

Module map 

Source
Expand description

This module contains the features that drive the actual map.

§Broad Overview

There are two main traits that drive bevy sparse tilemap.

MapData is the high level implementation that drives map construction and cell -> chunk pos conversion.

ChunkLayer is the meat and potatoes of BST and controls all of the access of the map.

Modules§

chunk
A chunk in BST is the meat and potatoes of the map. Access to tile data, entities, and updating information is all driven through the chunks of a map.

Structs§

Tilemap
The data structure containing information for each chunk.

Traits§

MapData
Trait that must be implemented for a map type. It consists of mandatory functions used in building new maps as well as implementing a way to convert a given Cell into a chunk pos
MapLayer
A layer used for identifying and accessing multiple layers of a Tilemap