This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Neo-Poseidon/Player.rs
Daniel Løvbrøtte Olsen d7baa63e64 Add some types
2019-01-23 21:04:52 +01:00

25 lines
340 B
Rust

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,
}