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

Return closures from conditions #96

Closed Shatur closed 11 months ago

Shatur commented 11 months ago

In Bevy all conditions done this way. See the the example. Let's make them consistent with the rest of the engine.

Shatur commented 11 months ago

Added two more condition that should replace #95. Similar to https://docs.rs/bevy/latest/bevy/input/struct.Input.html#method.just_pressed.

lucaspoffo commented 11 months ago

Added two more condition that should replace #95. Similar to https://docs.rs/bevy/latest/bevy/input/struct.Input.html#method.just_pressed.

Yeah, I prefer doing like this instead of events 👍

lucaspoffo commented 11 months ago

Thanks!