Cards plugin
This commit is contained in:
parent
c609a7d602
commit
1031e06024
2 changed files with 10 additions and 1 deletions
|
|
@ -3,6 +3,14 @@ use bevy::prelude::*;
|
|||
|
||||
pub mod hand;
|
||||
|
||||
pub struct CardsPlugin;
|
||||
|
||||
impl Plugin for CardsPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_observer(on_create_card);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Card;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
use crate::cards::CardsPlugin;
|
||||
use crate::lofpara_atlas::LofparaAtlasPlugin;
|
||||
|
||||
mod cards;
|
||||
mod lofpara_atlas;
|
||||
|
||||
fn main() {
|
||||
App::new().add_plugins((DefaultPlugins, LofparaAtlasPlugin));
|
||||
App::new().add_plugins((DefaultPlugins, LofparaAtlasPlugin, CardsPlugin));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue