bevy_sparse_tilemap 0.4.0

A Tilemap crate for the Bevy game engine with a focus on large map sizes and ECS sparse maps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bevy::prelude::{Entity, Resource};

mod errors;
mod manager;

pub use errors::TilemapManagerError;
pub use manager::TilemapManager;

/// A local resource for the tilemap manager that holds the currently selected map layer
#[derive(Resource, Default)]
pub(crate) struct LayerIndex<MapLayer>(pub(crate) MapLayer);

/// A local resource for the tilemap that holds the map entity that the tilemap manager is working with
#[derive(Default, Resource)]
pub(crate) struct MapEntity(pub(crate) Option<Entity>);