1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! The Bevy Tilemap Prelude.
//!
//! Since there is not a lot public declarations and much of the library is
//! mostly private API, everything that you would likely use is included in
//! here.
//!
//! While there is acknowledgement that there is some useful private API that
//! will be useful publicly, this should happen in another crate as it is out
//! of scope.
//!
//! # Prelude contents
//!
//! The current version of this prelude (version 0.2) is located in
//! [`bevy_tilemap::prelude::v0_2`], and re-exports the following.
//!
//! * [`bevy_tilemap::chunk`]::[`LayerKind`], the only public part
//! of `chunk` module is the kind of layer you need to specify to create.
//! * [`bevy_tilemap::entity`]::[`TilemapComponents`], the components
//! for spawning with a Tilemap.
//! * [`bevy_tilemap::map`]::[`Tilemap`], the core object that is
//! used for virtually everything in this library.
//! * [`bevy_tilemap::tile`]::{[`Tile`], [`Tiles`]}, a sprite tile which
//! holds minimal amount of data for small data sizes. Used in the `Tilemap`.
//! Tiles helps set tiles.
//! * [`bevy_tilemap`]::[`ChunkTilesPlugin`], the main plugin with
//! a collection of systems, components and assets to be used in a Bevy app.
//!
//! [`bevy_tilemap::dimensions`]: crate::dimensions
//! [`bevy_tilemap::chunk`]: crate::chunk
//! [`bevy_tilemap::entity`]: crate::entity
//! [`bevy_tilemap::map`]: crate::map
//! [`bevy_tilemap::tile`]: crate::tile
//! [`bevy_tilemap`]: crate

/// The 0.2 prelude version of Bevy Tilemap.
pub mod v0 {
    pub use crate::{
        chunk::LayerKind, entity::TilemapComponents, tile::Tile, tilemap::Tilemap, ChunkTilesPlugin,
    };
}

pub use v0::*;