Add Bevy event queues for inbound and outbound packets, and use Bevy change detection for consumer new Peer handling.
This commit is contained in:
parent
cceca83dac
commit
c10f6cfb82
9 changed files with 348 additions and 72 deletions
|
@ -1,5 +1,13 @@
|
|||
mod io;
|
||||
mod peer;
|
||||
mod plugin;
|
||||
pub use plugin::NetIOPlugin;
|
||||
mod queues;
|
||||
mod socket;
|
||||
mod thread;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub mod prelude {
|
||||
pub use super::io::{InboundPacket, OutboundPacket, Packet};
|
||||
pub use super::peer::Peer;
|
||||
pub use super::plugin::{NetIOPlugin, NetworkState};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue