Neo-Poseidon/Player.rs

25 lines
340 B
Rust
Raw Normal View History

2019-01-23 21:04:52 +01:00
enum Race {
Griffin,
}
struct Research {
Weapons: u8,
Banking: u8,
Manufactoring: u8,
Terraforming: u8,
Hyperspace: u8,
Experimentation: u8,
Scanning: u8
}
impl Research {
fn getWeaponsLevel() {
this.Weapons.
}
}
struct Player {
Name: String,
Color: (u8, u8, u8),
Race: Race,
}