Rename types
to queues
I mean that name just sucked
This commit is contained in:
parent
3c0590b273
commit
cb64878186
5 changed files with 4 additions and 4 deletions
|
@ -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;
|
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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<()> {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue