From 1835c930c9addfa996cc512323f351f45ec8d49a Mon Sep 17 00:00:00 2001 From: poffo Date: Wed, 21 Feb 2024 21:33:55 -0300 Subject: [PATCH] RenetSteam: make all bevy plugin system public --- renet_steam/src/bevy.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); }