| Crates.io | bevy_map_core |
| lib.rs | bevy_map_core |
| version | 0.3.1 |
| created_at | 2025-12-22 10:33:50.838722+00 |
| updated_at | 2026-01-20 11:17:18.211592+00 |
| description | Core data structures for bevy_map_editor - Level, Layer, Tileset, Entity |
| homepage | |
| repository | https://github.com/jbuehler23/bevy_map_editor |
| max_upload_size | |
| id | 1999492 |
| size | 226,363 |
Core data types for the bevy_map_editor ecosystem.
Part of bevy_map_editor.
| Type | Description |
|---|---|
MapProject |
Complete project with levels, tilesets, dialogues, animations |
Level |
Single map level with layers and entities |
Layer |
Tile or object layer within a level |
Tileset |
Tileset definition with multi-image support |
TilesetImage |
Individual image within a tileset |
EntityInstance |
Placed entity with position and properties |
Value |
Dynamic property value (String, Int, Float, Bool, Color, etc.) |
use bevy_map::core::{Level, Layer, LayerData, Tileset};
// Create a level
let mut level = Level::new("My Level", 32, 32);
// Add a tile layer
let layer = Layer::new_tile_layer("Ground", tileset_id, 32, 32);
level.layers.push(layer);
// Set tiles
level.set_tile(0, 0, 0, Some(1)); // layer 0, x=0, y=0, tile index 1
pub struct MapProject {
pub version: u32,
pub schema: Schema,
pub tilesets: Vec<Tileset>,
pub levels: Vec<Level>,
pub sprite_sheets: Vec<SpriteData>,
pub dialogues: Vec<DialogueTree>,
pub autotile_config: AutotileConfig,
}
MIT OR Apache-2.0