Expand description
use bevy_ecs_ldtk::prelude::*;
to import commonly used items.
Re-exports§
pub use crate::app::LdtkEntity;
pub use crate::app::LdtkEntityAppExt;
pub use crate::app::LdtkIntCell;
pub use crate::app::LdtkIntCellAppExt;
pub use crate::assets::LdtkProject;
pub use crate::assets::LevelIndices;
pub use crate::assets::LevelMetadataAccessor;
pub use crate::components::EntityInstance;
pub use crate::ldtk;
pub use crate::ldtk::ldtk_fields::LdtkFields;
pub use crate::ldtk::raw_level_accessor::RawLevelAccessor;
pub use crate::ldtk::FieldValue;
pub use crate::ldtk::LayerInstance;
pub use crate::ldtk::TilesetDefinition;
pub use crate::assets::LdtkExternalLevel;
Structs§
- Entity
Iid Component
added to allLdtkEntity
s by default.- Grid
Coords - Component that stores grid-based coordinate information.
- IntGrid
Cell - Component added to any
IntGrid
tile by default. - Layer
Metadata - Component for storing some LDtk layer information on layer entities.
- Ldtk
Plugin - Adds the default systems, assets, and resources used by
bevy_ecs_ldtk
. - Ldtk
Project Handle Component
storing the LDtk project asset handle, marking the root entity for the plugin to spawn levels in.- Ldtk
Settings - Settings resource for the plugin. Check out the documentation for each field type to learn more.
- Ldtk
World Bundle Bundle
for spawning LDtk worlds and their levels. The main bundle for using this plugin.- Level
Iid Component
that stores a level’s instance identifier.- Level
Set Component
that determines the desired levels to be spawned in anLdtkWorldBundle
.- Process
Ldtk Api - Schedule for processing this plugin’s ECS API, inserted after Update.
- Respawn
- Component that indicates that an LDtk level or world should respawn.
- Spawn
Exclusions - Specifies data that should be ignored completely when spawning levels. Excluded items will still
be present in the
LdtkProject
but will not cause any entities to be spawned in the world. - Tile
Enum Tags - Component for storing user-defined, enum-based tags for a particular tile in an LDtk tileset definition.
- Tile
Metadata - Component for storing user-defined custom data for a paticular tile in an LDtk tileset definition.
- Worldly
Component
that indicates that an ldtk entity should be a child of the world, not their layer.
Enums§
- IntGrid
Rendering - Option in LdtkSettings that determines the visual representation of IntGrid layers when they don’t have AutoTile rules.
- Level
Background - Option in LdtkSettings that dictates how the plugin handles level backgrounds.
- Level
Event - Events fired by the plugin related to level spawning/despawning.
- Level
Selection Resource
for choosing which level(s) to spawn.- Level
Spawn Behavior - Option in LdtkSettings that determines level spawn behavior.
- SetClear
Color - Option in LdtkSettings that determines clear color behavior.