This commit is contained in:
Adam 2024-04-24 02:23:47 -04:00
parent 2326e4b452
commit 6188f9920f

View file

@ -98,7 +98,7 @@ pub struct NewGameRequest {
/// Game join request structure /// Game join request structure
pub struct GameJoinRequest { pub struct GameJoinRequest {
/// Game id /// Game id
pub id: u8, // string? pub id: u8, // increase later
/// Game password /// Game password
pub password: String, pub password: String,
/// Player info /// Player info
@ -121,7 +121,7 @@ impl CAHGame {
Ok(()) Ok(())
} }
pub fn new(request: NewGameRequest) -> Result<CAHGame> { pub fn new(request: NewGameRequest) -> Result<Self> {
let mut game = CAHGame { let mut game = CAHGame {
..Default::default() ..Default::default()
}; };