Rename types to queues

I mean that name just sucked
This commit is contained in:
Michael Bradley 2025-06-02 23:58:56 -04:00
parent 3c0590b273
commit cb64878186
Signed by: MichaelBradley
SSH key fingerprint: SHA256:o/aaeYtRubILK7OYYjYP12DmU7BsPUhKji1AgaQ+ge4
5 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
mod plugin; mod plugin;
pub use plugin::NetIOPlugin; pub use plugin::NetIOPlugin;
mod queues;
mod socket; mod socket;
mod thread; mod thread;
mod types;

View file

@ -5,8 +5,8 @@ use bevy::prelude::*;
use crate::game::prelude::Seed; use crate::game::prelude::Seed;
use super::{ use super::{
queues::{NetworkReceive, NetworkSend},
socket::bind_socket, socket::bind_socket,
types::{NetworkReceive, NetworkSend},
}; };
fn handle_network_io( fn handle_network_io(

View file

@ -7,8 +7,8 @@ use std::{
use crossbeam_channel::unbounded; use crossbeam_channel::unbounded;
use super::{ use super::{
queues::{ReceiveQueue, SendQueue},
thread::{start_receive_thread, start_send_thread}, thread::{start_receive_thread, start_send_thread},
types::{ReceiveQueue, SendQueue},
}; };
fn configure_socket(socket: &UdpSocket) -> Result<()> { fn configure_socket(socket: &UdpSocket) -> Result<()> {

View file

@ -5,7 +5,7 @@ use std::{
use bevy::prelude::*; use bevy::prelude::*;
use super::types::{ReceiveQueue, SendQueue}; use super::queues::{ReceiveQueue, SendQueue};
fn network_send_loop(messages: ReceiveQueue, socket: UdpSocket) -> Result { fn network_send_loop(messages: ReceiveQueue, socket: UdpSocket) -> Result {
loop { loop {