Neo-Poseidon/game/star.rs

17 lines
308 B
Rust
Raw Permalink Normal View History

2019-05-09 00:13:15 +02:00
#[derive(Default,Debug)]
2019-05-08 01:36:04 +02:00
struct Infrastructre {
factory: u16,
lab: u16,
bank: u16
}
2019-05-09 00:13:15 +02:00
#[derive(Default,Debug)]
2019-05-08 01:36:04 +02:00
pub struct Star {
2019-05-09 00:13:15 +02:00
ownerID: Option<u8>,
2019-05-08 01:36:04 +02:00
location: (u16, u16),
name: String,
natural_resources: u16,
infrastructre: Infrastructre,
hypergate: bool,
ships: u16
}