gameServer2/src/server/coretypes.rs
author alfadur
Mon, 18 Jun 2018 09:22:53 -0400
changeset 13416 cdf69667593b
parent 13119 1e39b8749072
child 13419 81e0ed105f5d
permissions -rw-r--r--
partial room implementation

#[derive(PartialEq, Eq, Clone, Debug)]
pub enum ServerVar {
    MOTDNew(String),
    MOTDOld(String),
    LatestProto(u32),
}

#[derive(PartialEq, Eq, Clone, Debug)]
pub enum GameCfg {

}

#[derive(PartialEq, Eq, Clone, Debug)]
pub struct TeamInfo {
    name: String,
    color: u8,
    grave: String,
    fort: String,
    voice_pack: String,
    flag: String,
    difficulty: u8,
    hedgehogs_number: u8,
    hedgehogs: [HedgehogInfo; 8],
}

#[derive(PartialEq, Eq, Clone, Debug)]
pub struct HedgehogInfo {
    name: String,
    hat: String,
}