Skip to content

Commit

Permalink
RenetSteam: make all bevy plugin system public
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspoffo committed Feb 22, 2024
1 parent 330805d commit 1835c93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions renet_steam/src/bevy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ impl Plugin for SteamServerPlugin {
}

impl SteamServerPlugin {
fn update_system(mut transport: Option<NonSendMut<SteamServerTransport>>, mut server: ResMut<RenetServer>) {
pub fn update_system(mut transport: Option<NonSendMut<SteamServerTransport>>, mut server: ResMut<RenetServer>) {
if let Some(transport) = transport.as_mut() {
transport.update(&mut server);
}
}

fn send_packets(mut transport: Option<NonSendMut<SteamServerTransport>>, mut server: ResMut<RenetServer>) {
pub fn send_packets(mut transport: Option<NonSendMut<SteamServerTransport>>, mut server: ResMut<RenetServer>) {
if let Some(transport) = transport.as_mut() {
transport.send_packets(&mut server);
}
Expand Down Expand Up @@ -86,11 +86,11 @@ impl Plugin for SteamClientPlugin {
}

impl SteamClientPlugin {
fn update_system(mut transport: ResMut<SteamClientTransport>, mut client: ResMut<RenetClient>) {
pub fn update_system(mut transport: ResMut<SteamClientTransport>, mut client: ResMut<RenetClient>) {
transport.update(&mut client);
}

fn send_packets(
pub fn send_packets(
mut transport: ResMut<SteamClientTransport>,
mut client: ResMut<RenetClient>,
mut transport_errors: EventWriter<SteamTransportError>,
Expand All @@ -100,7 +100,7 @@ impl SteamClientPlugin {
}
}

fn disconnect_on_exit(exit: EventReader<AppExit>, mut transport: ResMut<SteamClientTransport>) {
pub fn disconnect_on_exit(exit: EventReader<AppExit>, mut transport: ResMut<SteamClientTransport>) {
if !exit.is_empty() {
transport.disconnect();
}
Expand Down

0 comments on commit 1835c93

Please sign in to comment.