File size: 580 Bytes
dda7d52
 
48ca417
 
 
 
 
 
 
 
 
dda7d52
48ca417
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::ecs::{ bundle::Bundle, component::Component };
use bevy_ecs_ldtk::{ prelude::LdtkEntity, utils::LdtkSpriteSheetBundle };

use super::{ ColliderBundle, PredefinedPath };

#[derive(Copy, Clone, Eq, PartialEq, Debug, Default, Component)]
pub struct MovingPlatform;

#[derive(Clone, Default, Bundle, LdtkEntity)]
pub struct MovingPlatformBundle {
    #[sprite_sheet_bundle]
    pub sprite_sheet_bundle: LdtkSpriteSheetBundle,
    #[from_entity_instance]
    pub collider_bundle: ColliderBundle,
    #[ldtk_entity]
    pub predefined_path: PredefinedPath,
}