use crate::prelude::*;
use beetmash_net::prelude::*;
use beetmash_scene::prelude::*;
use bevy::prelude::*;
pub struct DefaultReplicatePlugin;
impl Plugin for DefaultReplicatePlugin {
fn build(&self, app: &mut App) {
let _ = app;
app.add_plugins((ReplicatePlugin, CommonEventsPlugin));
#[cfg(feature = "scene")]
app.add_plugins(spawn_scene_file_plugin)
.replicate_event_incoming::<SpawnSceneFile>()
.replicate_event_outgoing::<SpawnSceneFileResponse>();
#[cfg(feature="render")]
app.add_event::<SaveScreenshot>()
.replicate_event_incoming::<SaveScreenshot>()
.add_systems(Update,screenshot_on_event.run_if(run_if_rendering))
.add_systems(Update,screenshot_on_keypress.run_if(run_if_rendering))
;
}
}