mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 04:48:21 -06:00
move config
This commit is contained in:
parent
f1a8b87672
commit
dfebd1d5a1
|
@ -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