separated / src /entities /movingplatform.rs
Gaeros's picture
build you shall
dda7d52
raw
history blame contribute delete
No virus
580 Bytes
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,
}