rust/hedgewars-server/src/core/types.rs
changeset 15102 80ff12edf5e6
parent 15074 c5a6e8566425
child 15547 863059f61793
equal deleted inserted replaced
15101:f772013867e7 15102:80ff12edf5e6
    46 pub struct HedgehogInfo {
    46 pub struct HedgehogInfo {
    47     pub name: String,
    47     pub name: String,
    48     pub hat: String,
    48     pub hat: String,
    49 }
    49 }
    50 
    50 
    51 #[derive(Clone, Serialize, Deserialize)]
    51 #[derive(Clone, Serialize, Deserialize, Debug)]
    52 pub struct Ammo {
    52 pub struct Ammo {
    53     pub name: String,
    53     pub name: String,
    54     pub settings: Option<String>,
    54     pub settings: Option<String>,
    55 }
    55 }
    56 
    56 
    57 #[derive(Clone, Serialize, Deserialize)]
    57 #[derive(Clone, Serialize, Deserialize, Debug)]
    58 pub struct Scheme {
    58 pub struct Scheme {
    59     pub name: String,
    59     pub name: String,
    60     pub settings: Vec<String>,
    60     pub settings: Vec<String>,
    61 }
    61 }
    62 
    62 
    63 #[derive(Clone, Serialize, Deserialize)]
    63 #[derive(Clone, Serialize, Deserialize, Debug)]
    64 pub struct RoomConfig {
    64 pub struct RoomConfig {
    65     pub feature_size: u32,
    65     pub feature_size: u32,
    66     pub map_type: String,
    66     pub map_type: String,
    67     pub map_generator: u32,
    67     pub map_generator: u32,
    68     pub maze_size: u32,
    68     pub maze_size: u32,
   151         }
   151         }
   152         v
   152         v
   153     }
   153     }
   154 }
   154 }
   155 
   155 
       
   156 #[derive(Debug)]
   156 pub struct Replay {
   157 pub struct Replay {
   157     pub config: RoomConfig,
   158     pub config: RoomConfig,
   158     pub teams: Vec<TeamInfo>,
   159     pub teams: Vec<TeamInfo>,
   159     pub message_log: Vec<String>,
   160     pub message_log: Vec<String>,
   160 }
   161 }