Implement message types and lobby join
parent
f24cc62118
commit
42414a0a23
|
|
@ -0,0 +1,26 @@
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
|
pub struct Role {
|
||||||
|
role: Roles,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub enum Roles {
|
||||||
|
Null,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Role {
|
||||||
|
pub fn new() -> Role {
|
||||||
|
Role {
|
||||||
|
role: Roles::Null,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn new_role() {
|
||||||
|
let _ = Role::new();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue