mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
move config
This commit is contained in:
parent
1c0409a9cf
commit
a7a20093d6
|
@ -2,3 +2,8 @@ pub mod blocks;
|
|||
pub mod networking;
|
||||
pub mod worldgen;
|
||||
pub mod chunk;
|
||||
|
||||
pub(crate) const BINCODE_CONFIG: bincode::config::Configuration<bincode::config::LittleEndian, bincode::config::Varint, bincode::config::SkipFixedArrayLength> = bincode::config::standard()
|
||||
.with_little_endian()
|
||||
.with_variable_int_encoding()
|
||||
.skip_fixed_array_length();
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
use std::net::{UdpSocket, SocketAddr};
|
||||
use super::messages::ClientToServerMessage;
|
||||
|
||||
const BINCODE_CONFIG: bincode::config::Configuration<bincode::config::LittleEndian, bincode::config::Varint, bincode::config::SkipFixedArrayLength> = bincode::config::standard()
|
||||
.with_little_endian()
|
||||
.with_variable_int_encoding()
|
||||
.skip_fixed_array_length();
|
||||
use crate::BINCODE_CONFIG;
|
||||
|
||||
pub struct Client {
|
||||
socket: UdpSocket
|
||||
|
|
Loading…
Reference in a new issue