Skip to main content

beuvy_runtime/
image.rs

1mod build;
2
3use bevy::prelude::*;
4
5#[derive(SystemSet, Debug, Clone, Copy, PartialEq, Eq, Hash)]
6pub enum ImageSet {
7    Build,
8}
9
10#[derive(Component, Debug, Clone, Default)]
11pub struct AddImage {
12    pub src: String,
13    pub alt: String,
14    pub class: Option<String>,
15}
16
17pub struct ImagePlugin;
18
19impl Plugin for ImagePlugin {
20    fn build(&self, app: &mut App) {
21        app.add_systems(Update, build::add_image.in_set(ImageSet::Build));
22    }
23}