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 system sets #79

Closed Shatur closed 1 year ago

Shatur commented 1 year ago

Using system sets is the recommended way to run several systems on conditions. Adding multiple systems to a set with condition will result in only a single condition check for the whole set. Also it's more ergonomic.

lucaspoffo commented 1 year ago

This change makes sense, but merging it will take a while because I'm currently working on a rewrite (mostly internal protocol changes, public API should be similar).

lucaspoffo commented 1 year ago

I've added your changes in https://github.com/lucaspoffo/renet/pull/82 since I was already doing some rework there. I've also added a set for the Transport Layer since it is now split and it needs another plugin for it.

Thanks!