gameServer2/src/server/room.rs
author alfadur
Fri, 13 Apr 2018 00:17:30 +0200
changeset 13326 23ade5604f8d
parent 13124 1e39b8749072
child 13421 cdf69667593b
permissions -rw-r--r--
Fix bullet trails overlapping when the pass through wrap or bounce world edge

pub type RoomId = usize;

pub struct HWRoom {
    pub id: RoomId,
    pub name: String,
    pub password: Option<String>,
    pub protocol_number: u32,
    pub ready_players_number: u8,
}

impl HWRoom {
    pub fn new(id: RoomId) -> HWRoom {
        HWRoom {
            id,
            name: String::new(),
            password: None,
            protocol_number: 0,
            ready_players_number: 0,
        }
    }
}