lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
622 stars 66 forks source link

Add connection and disconnection events for client #94

Closed Shatur closed 11 months ago

Shatur commented 11 months ago

We have connection event for server, it would be very convenient to have a similar feature for client. We currently have conditions for checking states, but there is no way to check if client "just" connected. We could provide additional conditions for it too, but events for this case would be more idiomatic.

lucaspoffo commented 11 months ago

Events for clients will not be added. But, with bevy_renet, we can now use run conditions - client_just_connected, client_just_disconnected - added in #96 for similar effect :+1: