Whoa boy rust is a problem child
This commit is contained in:
23
secert-hitler/src/controller/gamemaster/gamemaster.rs
Normal file
23
secert-hitler/src/controller/gamemaster/gamemaster.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
#[derive(Debug)]
|
||||
pub struct GameMaster {
|
||||
room_id: String,
|
||||
}
|
||||
|
||||
impl GameMaster {
|
||||
fn new() -> GameMaster {
|
||||
GameMaster{
|
||||
room_id: "hello".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn new() {
|
||||
let gm = GameMaster::new();
|
||||
println!("made: {:?}", gm);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user