equal
deleted
inserted
replaced
9 use serde_derive::{Deserialize, Serialize}; |
9 use serde_derive::{Deserialize, Serialize}; |
10 use serde_yaml; |
10 use serde_yaml; |
11 use std::{collections::HashMap, iter}; |
11 use std::{collections::HashMap, iter}; |
12 |
12 |
13 pub const MAX_TEAMS_IN_ROOM: u8 = 8; |
13 pub const MAX_TEAMS_IN_ROOM: u8 = 8; |
14 pub const MAX_HEDGEHOGS_IN_ROOM: u8 = MAX_HEDGEHOGS_PER_TEAM * MAX_HEDGEHOGS_PER_TEAM; |
14 pub const MAX_HEDGEHOGS_IN_ROOM: u8 = MAX_TEAMS_IN_ROOM * MAX_HEDGEHOGS_PER_TEAM; |
15 |
15 |
16 fn client_teams_impl( |
16 fn client_teams_impl( |
17 teams: &[(ClientId, TeamInfo)], |
17 teams: &[(ClientId, TeamInfo)], |
18 client_id: ClientId, |
18 client_id: ClientId, |
19 ) -> impl Iterator<Item = &TeamInfo> + Clone { |
19 ) -> impl Iterator<Item = &TeamInfo> + Clone { |