more refactor

This commit is contained in:
2025-11-18 02:38:23 -05:00
parent db15f43610
commit 01cd02c0f9
11 changed files with 39 additions and 24 deletions

16
src/bin/client/rsc.rs Normal file
View File

@@ -0,0 +1,16 @@
pub const CLIENT_DATA: &str = "client_data";
#[derive(bincode::Encode, bincode::Decode)]
pub struct ClientData {
pub ip: String,
pub username: String,
}
impl Default for ClientData {
fn default() -> Self {
Self {
ip: "localhost:39420".to_string(),
username: "your [NOVEMBER]".to_string(),
}
}
}