//! Scene format versioning plugin (editor); logic lives in the `scene` crate.

use bevy::prelude::*;
pub use scene::{
    migrate_scene_text, stamp_schema_version, strip_schema_version, validate_level_file,
    validate_level_text, SceneSchemaHeader, CURRENT_SCENE_SCHEMA_VERSION,
};

pub struct SceneSchemaPlugin;

impl Plugin for SceneSchemaPlugin {
    fn build(&self, app: &mut App) {
        app.init_resource::<SceneSchemaState>();
    }
}

#[derive(Resource, Default)]
pub struct SceneSchemaState {
    pub last_validated: u32,
}
