lucaspoffo / renet

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

Export systems to user #22

Closed Shatur closed 2 years ago

Shatur commented 2 years ago

In this PR I made systems public to allow users access them for explicit system ordering. And I made them part of the plugins for nicer access. Usage example:

app.add_system_to_stage(CoreStage::PreUpdate, my_awesome_system.after(RenetServerPlugin::update_system));

(*_system ending is preferred in Bevy)

lucaspoffo commented 2 years ago

Thanks! Overlook using the systems for ordering