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