author | alfadur |
Thu, 21 Jun 2018 17:23:10 -0400 | |
changeset 13419 | 81e0ed105f5d |
parent 13119 | 1e39b8749072 |
child 13422 | 5fb27f94fc3b |
permissions | -rw-r--r-- |
13119
1e39b8749072
separated the server logic from all the async io mess.
alfadur
parents:
12131
diff
changeset
|
1 |
#[derive(PartialEq, Eq, Clone, Debug)] |
12130 | 2 |
pub enum ServerVar { |
3 |
MOTDNew(String), |
|
4 |
MOTDOld(String), |
|
5 |
LatestProto(u32), |
|
6 |
} |
|
7 |
||
13119
1e39b8749072
separated the server logic from all the async io mess.
alfadur
parents:
12131
diff
changeset
|
8 |
#[derive(PartialEq, Eq, Clone, Debug)] |
12130 | 9 |
pub enum GameCfg { |
10 |
||
11 |
} |
|
12 |
||
13119
1e39b8749072
separated the server logic from all the async io mess.
alfadur
parents:
12131
diff
changeset
|
13 |
#[derive(PartialEq, Eq, Clone, Debug)] |
12130 | 14 |
pub struct TeamInfo { |
13419 | 15 |
pub name: String, |
16 |
pub color: u8, |
|
17 |
pub grave: String, |
|
18 |
pub fort: String, |
|
19 |
pub voice_pack: String, |
|
20 |
pub flag: String, |
|
21 |
pub difficulty: u8, |
|
22 |
pub hedgehogs_number: u8, |
|
23 |
pub hedgehogs: [HedgehogInfo; 8], |
|
12130 | 24 |
} |
25 |
||
13119
1e39b8749072
separated the server logic from all the async io mess.
alfadur
parents:
12131
diff
changeset
|
26 |
#[derive(PartialEq, Eq, Clone, Debug)] |
12130 | 27 |
pub struct HedgehogInfo { |
13419 | 28 |
pub name: String, |
29 |
pub hat: String, |
|
12130 | 30 |
} |