use bevy::prelude::*;

mod card;
mod turn;

fn main() {
    App::new().add_plugins((DefaultPlugins, MagisterGame)).run()
}

struct MagisterGame;

impl Plugin for MagisterGame {
    fn build(&self, app: &mut App) {
        app.add_systems(Startup, camera::setup_camera);
    }
}

mod camera {
    use bevy::prelude::*;

    #[derive(Component)]
    pub struct PrimaryCamera;

    pub fn setup_camera(mut commands: Commands) {
        commands.spawn((
            PrimaryCamera,
            Camera2dBundle {
                camera: Camera {
                    clear_color: ClearColorConfig::Default,
                    ..default()
                },
                ..default()
            },
        ));
    }
}