Skip to content
Snippets Groups Projects
Verified Commit 5f1ac45c authored by Louis's avatar Louis :fire:
Browse files

Use correct flags for plugin contents

parent 3c4173f9
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,20 @@ mod __plugin { ...@@ -58,7 +58,20 @@ mod __plugin {
pub struct MicroLDTKPlugin; pub struct MicroLDTKPlugin;
impl Plugin for MicroLDTKPlugin { impl Plugin for MicroLDTKPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
#[cfg(any(feature = "ldtk_1_2_5", feature = "ldtk_1_2_4"))] #[cfg(any(
feature = "ldtk_1_3_0",
feature = "ldtk_1_2_5",
feature = "ldtk_1_2_4",
feature = "ldtk_1_2_3",
feature = "ldtk_1_2_2",
feature = "ldtk_1_2_1",
feature = "ldtk_1_2_0",
feature = "ldtk_1_1_3",
feature = "ldtk_1_1_2",
feature = "ldtk_1_1_1",
feature = "ldtk_1_1_0",
feature = "ldtk_1_0_0",
))]
{ {
app.add_event::<super::system::LevelDataUpdated>() app.add_event::<super::system::LevelDataUpdated>()
.add_asset::<super::ldtk::Project>() .add_asset::<super::ldtk::Project>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment