diff --git a/renet_steam/src/bevy.rs b/renet_steam/src/bevy.rs index 41cd62e1..a8d52ea9 100644 --- a/renet_steam/src/bevy.rs +++ b/renet_steam/src/bevy.rs @@ -39,13 +39,13 @@ impl Plugin for SteamServerPlugin { } impl SteamServerPlugin { - fn update_system(mut transport: Option>, mut server: ResMut) { + pub fn update_system(mut transport: Option>, mut server: ResMut) { if let Some(transport) = transport.as_mut() { transport.update(&mut server); } } - fn send_packets(mut transport: Option>, mut server: ResMut) { + pub fn send_packets(mut transport: Option>, mut server: ResMut) { if let Some(transport) = transport.as_mut() { transport.send_packets(&mut server); } @@ -86,11 +86,11 @@ impl Plugin for SteamClientPlugin { } impl SteamClientPlugin { - fn update_system(mut transport: ResMut, mut client: ResMut) { + pub fn update_system(mut transport: ResMut, mut client: ResMut) { transport.update(&mut client); } - fn send_packets( + pub fn send_packets( mut transport: ResMut, mut client: ResMut, mut transport_errors: EventWriter, @@ -100,7 +100,7 @@ impl SteamClientPlugin { } } - fn disconnect_on_exit(exit: EventReader, mut transport: ResMut) { + pub fn disconnect_on_exit(exit: EventReader, mut transport: ResMut) { if !exit.is_empty() { transport.disconnect(); }