pub(crate) mod player; pub(crate) mod torch; pub(crate) mod enemy; pub(crate) mod npc; pub(crate) mod pumpkin; pub(crate) mod chest; pub(crate) mod movingplatform; pub(crate) mod dog; pub(crate) mod cat; pub(crate) mod kade; pub(crate) mod cauldron; pub(crate) mod intcells; use bevy::app::App; use bevy_ecs_ldtk::app::{ LdtkEntityAppExt, LdtkIntCellAppExt }; // Component commonly used by entities bundles in sub-modules use crate::components::{ collision::ColliderBundle, predefinedpath::PredefinedPath }; pub(super) use player::Player; pub(super) fn plugin(app: &mut App) { app.register_ldtk_int_cell::(1) .register_ldtk_int_cell::(2) .register_ldtk_int_cell::(3) .register_ldtk_int_cell::(4) .register_ldtk_entity::("Torch") .register_ldtk_entity::("Player") .register_ldtk_entity::("Dog") .register_ldtk_entity::("DogPatrol") .register_ldtk_entity::("Cat") .register_ldtk_entity::("CatPatrol") .register_ldtk_entity::("Cauldron") .register_ldtk_entity::("Kade") .register_ldtk_entity::("Npc") .register_ldtk_entity::("NpcPatrol") .register_ldtk_entity::("MovingPlatform") .register_ldtk_entity::("Enemy") .register_ldtk_entity::("Chest") .register_ldtk_entity::("Pumpkins"); }