2021-04-11 20:13:07 +00:00
|
|
|
use crate::Sprite;
|
|
|
|
use bevy_asset::Handle;
|
|
|
|
use bevy_ecs::bundle::Bundle;
|
2021-06-21 23:28:52 +00:00
|
|
|
use bevy_render2::texture::Image;
|
2021-04-11 20:13:07 +00:00
|
|
|
use bevy_transform::components::{GlobalTransform, Transform};
|
|
|
|
|
|
|
|
#[derive(Bundle, Clone)]
|
|
|
|
pub struct PipelinedSpriteBundle {
|
|
|
|
pub sprite: Sprite,
|
|
|
|
pub transform: Transform,
|
|
|
|
pub global_transform: GlobalTransform,
|
2021-06-21 23:28:52 +00:00
|
|
|
pub texture: Handle<Image>,
|
2021-04-11 20:13:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for PipelinedSpriteBundle {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self {
|
|
|
|
sprite: Default::default(),
|
|
|
|
transform: Default::default(),
|
|
|
|
global_transform: Default::default(),
|
|
|
|
texture: Default::default(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|