26 lines
536 B
Rust
26 lines
536 B
Rust
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||
|
pub struct Expedition {
|
||
|
pub id: u64,
|
||
|
pub ship_count: u64,
|
||
|
pub origin: String,
|
||
|
pub destination: String,
|
||
|
pub owner: u64,
|
||
|
pub turns_remaining: u64,
|
||
|
}
|
||
|
|
||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||
|
pub struct Planet {
|
||
|
pub ship_count: u64,
|
||
|
pub x: f64,
|
||
|
pub y: f64,
|
||
|
pub owner: Option<u32>,
|
||
|
pub name: String,
|
||
|
}
|
||
|
|
||
|
|
||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||
|
pub struct State {
|
||
|
pub planets: Vec<Planet>,
|
||
|
pub expeditions: Vec<Expedition>,
|
||
|
}
|