equal
deleted
inserted
replaced
2 use server::{ |
2 use server::{ |
3 coretypes::{ClientId, RoomId, TeamInfo, GameCfg, GameCfg::*, Voting}, |
3 coretypes::{ClientId, RoomId, TeamInfo, GameCfg, GameCfg::*, Voting}, |
4 client::{HWClient} |
4 client::{HWClient} |
5 }; |
5 }; |
6 |
6 |
7 const MAX_HEDGEHOGS_IN_ROOM: u8 = 48; |
7 const MAX_HEDGEHOGS_IN_ROOM: u8 = 64; |
|
8 const MAX_TEAMS_IN_ROOM: u8 = 8; |
8 |
9 |
9 #[derive(Clone)] |
10 #[derive(Clone)] |
10 struct Ammo { |
11 struct Ammo { |
11 name: String, |
12 name: String, |
12 settings: Option<String> |
13 settings: Option<String> |
144 greeting: "".to_string(), |
145 greeting: "".to_string(), |
145 flags: RoomFlags::empty(), |
146 flags: RoomFlags::empty(), |
146 protocol_number: 0, |
147 protocol_number: 0, |
147 players_number: 0, |
148 players_number: 0, |
148 default_hedgehog_number: 4, |
149 default_hedgehog_number: 4, |
149 team_limit: 8, |
150 team_limit: MAX_TEAMS_IN_ROOM, |
150 ready_players_number: 0, |
151 ready_players_number: 0, |
151 teams: Vec::new(), |
152 teams: Vec::new(), |
152 config: RoomConfig::new(), |
153 config: RoomConfig::new(), |
153 voting: None, |
154 voting: None, |
154 game_info: None |
155 game_info: None |